smtp authentication needed C++ app

Associate
Joined
22 Nov 2005
Posts
319
Location
Alnwick, Northumberland
I was wanting to know how to send an email from within a program without having a UI, so i found this example project from Codeproject. Upon using it, i found that i can connect to the smtp server but it requires smtp authentication so does not send the message. Ideally i wanted to try this authentication out in the codeproject example. Does anyone no how to do this?

Code Project
 
yes i have a hostname and password for the server, my query was how to integrate authorisation into the program
 
any use ?

http://www.codeproject.com/cs/internet/Email_Sending_in_C_.asp

http://www.codeproject.com/useritems/SendMailUsingGmailAccount.asp


not using C, but I've seen it done with telnet to port 25,
so the process is a bit more open
http://www.webpan.com/customers/Email/SMTP_Authentication_Telnet_Test.htm


for v1.41 he notes
"Added support for ESMTP connection. The class now attempts to authenticate the user on the ESMTP server using the username and passwords supplied. For this connect now takes the username and passwords as parameters. These can be null in which case ESMTP authentication is not attempted"

so I guess it's there, but I can't see it at the mo'


.
 
Last edited:
Back
Top Bottom