|Posted by:||Mehmet (mehmet.demir…@planet.com.tr)|
|Date:||Wed, 3 May 2006|
I am a newbie to Indy Smtp and have a very basic question.
I use C++ Builder 6.0 and Indy 8.0.25 which comes with C++ Builder.
I am trying to send an e-mail to myself using gmail smtp server.
Here is what I do:
SMTP->Host = "smtp.gmail.com";
SMTP->Port = 465;
SMTP->UserId = User;
SMTP->Password = Password;
SMTP->AuthenticationType = atLogin;
I see that the connection is successful because OnConnected event is fired
but when I call Authenticate() , an exception is raised with message "Socket
Error #10054 Connection reset by peer"
I appreciate any help or example code