Need help understanding how to send smtp email via telnet
As part of a project I want to be able to send an email message from my Spinneret. I have been messing with telnet most of the afternoon and searching Google to try to understand it and get it working. I get so far then I don't know what to do next.
Here is a screen shot from my Mac terminal:
telnet smtp.gmail.com 587 <<<< I typed in
Trying 74.125.47.109...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP t43sm1553334yhm.70
ehlo <<<< I typed in
250-mx.google.com at your service, [173.53.193.138]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
starttls <<<< I typed in
220 2.0.0 Ready to start TLS
Now I don't know what to type in next. I know that the user name and password have to be BASE64. However I don't know what format it is expecting such as username@gmail.com/password or username/@gmail.com/password, etc.
I also tried port 25 but it never gets past this:
telnet smtp.gmail.com 25
Trying 72.14.213.109...
Thanks.
Don
Here is a screen shot from my Mac terminal:
telnet smtp.gmail.com 587 <<<< I typed in
Trying 74.125.47.109...
Connected to gmail-smtp-msa.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP t43sm1553334yhm.70
ehlo <<<< I typed in
250-mx.google.com at your service, [173.53.193.138]
250-SIZE 35882577
250-8BITMIME
250-STARTTLS
250 ENHANCEDSTATUSCODES
starttls <<<< I typed in
220 2.0.0 Ready to start TLS
Now I don't know what to type in next. I know that the user name and password have to be BASE64. However I don't know what format it is expecting such as username@gmail.com/password or username/@gmail.com/password, etc.
I also tried port 25 but it never gets past this:
telnet smtp.gmail.com 25
Trying 72.14.213.109...
Thanks.
Don
Comments
http://www.etiennerached.com/2010/10/sending-email-using-gmail-smtp-server.html