how to send mails from VC++ program without using outlook
Hi everybody,
I m writting an application which calulates some results and send them thr e-mail.I want my VC++ program to send this mail to specified address without using Outlook Express or Microsoft Outlook...or without opening any browser window...in fact i want to send them undetected..that means user shud not know abt sending mails....plzzzzz anybody tell me how to do this..its urgent...do u think socket programming will do this?
Try looking into the tools by MarshallSoft, I have used their lib/dll e-mail tools for some time now with very very very good luck. They are very easy to code into your app and invisible to the user as they use their own functions and do not use Outlook or Outlook Express. They can be found at. www.marshallsoft.com
hi jim..thanks a lot for ur quick reply..but will u plz tell me in detail??i mean what shud i look for on this given url??and how can i use that tools in my code??is it necessary to load those tools on user's computer??plzzzzz reply back...its a bit urgent.
You'll want to look at the "SEE4C" Email engine for c/c++ under the "Products" listing, it does require a dll to be on the users computer to send email in the background. There is full documentation online for reference/programmer and can be viewed. I looked and tested many email tools over a 4 month trial for one of my apps and found this one to be the best and easiest to understand and get running quickly. They do offer eval versions also.
Well if this library be downloaded, can it be used for longer time? As it is evaluation version, i think there might be some what resisting the use for longer time.
Well...the code I posted can basically copied directly into a console application. So simply create an empty console project, add an empty *.cpp file and copy/paste the whole code into the file...
You can also specify the Subject, an alias for the sender and receiver (besides just their e-mail addresses), and the type of message to compose (HTML, plain text).
Here's a partial example of how to send an HTML e-mail from CodeGuru:
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Andreas' code can be used, you will need to modify it for you purpose though.
Here is a COM object that can be used to populate and send email from the VC++ application. Its very easy to use.
Just make sure you initialise the COM libraries
Andreas,
in the code you attached why do you send line by line as opposed to the entire data buffer at once?
I am sure there is a good reason behind it, but I can't figure it out?
Thanks
The most knowledgeable people are those who know that they know nothing.
Originally posted by Tamerocyte
Andreas,
in the code you attached why do you send line by line as opposed to the entire data buffer at once?
I am sure there is a good reason behind it, but I can't figure it out?
Thanks
Maybe because sprintf, like wsprintf (as I found out), has a limit of 1024 characters. Not always enough for the entire message body.
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.