sending mail via SMTP and TELNET

522 views
Skip to first unread message

Kulin Shah

unread,
Feb 24, 2014, 8:23:33 PM2/24/14
to sjsu...@googlegroups.com, Frank Lin
Sir,
I have connected to the smtp server of aol.com via telnet on its port no 587
I ahve been able to complete all the steps i.e. login and puttig in sender's and recepients mail address but after putting in the data, the server asked me to terminate the message with a <CR><LF>.<CR><LF
i understand that it is line feed (LF) and carriage return (CR) 
my question is how to implement the same in command prompt
please revert
i am attaching the screen shot of the cmd window for your reference
SMTP.jpg

Bhavik Sanghavi

unread,
Feb 25, 2014, 12:24:34 AM2/25/14
to sjsu...@googlegroups.com, Frank Lin
hi kulin.. try putting a dot "." at the end of the body.

Kulin Shah

unread,
Feb 25, 2014, 12:54:57 AM2/25/14
to Bhavik Anilkumar Sanghavi, sjsu...@googlegroups.com

Yup Bhavik tried that in the third attempt
But received a message stating AOL won't deliver this message
So I guess AOL SMTP server is not enabled to send mails manually
Have you got any idea regarding any mail servers who have the manual sending enabled?
I know that gmail permits it on its port 587 but the connection times out before u can complete typing
And again not sure if yahoo allows it
Any idea about some service barring these three that might allow manual?
Thanks

On Feb 24, 2014 9:24 PM, "Bhavik Sanghavi" <bhavikanilku...@sjsu.edu> wrote:
hi kulin.. try putting a dot "." at the end of the body.

--
You received this message because you are subscribed to the Google Groups "SJSUee281" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sjsuee281+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Frank (sjsu) Lin

unread,
Feb 25, 2014, 12:33:22 PM2/25/14
to kulin...@sjsu.edu, Bhavik Anilkumar Sanghavi, SJSUee281
That's the thing called, MTA message transfer agent.  Most ISP won't allow it unless they can verify who you are.  It is obvious a "spam" opportunity if there are publicly available MTA.

For those who are interested in digging mail protocol further, you can formulate it as a project later in the semester.

Bhavik Sanghavi

unread,
Feb 25, 2014, 12:37:12 PM2/25/14
to sjsu...@googlegroups.com, Bhavik Anilkumar Sanghavi
gmail works for me on 587 and 465. I have not tried any of the other servers so i do not know of any other mail server.
your connection is timing out because gmail server uses TLS to transport the data. So your PC would need to do a TLS handshake with the gmail mail server before you actually authenticate yourself with the username and password.


Krishna Sruthi

unread,
Feb 25, 2014, 6:29:22 PM2/25/14
to sjsu...@googlegroups.com, Frank Lin


hi bhavik,
   
    I connected to smtp port 587(gmail.com) and could starttls,but  after typing auth login i got a reply saying that the connection to host is lost. Im attaching the screenshot for reference.Can u please help me out with this?

    
12.png

Kulin Shah

unread,
Feb 25, 2014, 6:53:09 PM2/25/14
to sruthi....@gmail.com, Frank Lin, sjsu...@googlegroups.com

What Bhavik used is some third party application called s tunnel or something if I am not wrong
We can't use the normal cmd method to send mail via gmail as the connection times out after STARTTLS command
So I am still not sure which mail server service accepts manual telnet SMTP method as of now

On Feb 25, 2014 3:29 PM, "Krishna Sruthi" <sruthi....@gmail.com> wrote:


hi bhavik,
   
    I connected to smtp port 587(gmail.com) and could starttls,but  after typing auth login i got a reply saying that the connection to host is lost. Im attaching the screenshot for reference.Can u please help me out with this?

    

--

Bhavik Sanghavi

unread,
Feb 25, 2014, 11:13:59 PM2/25/14
to sjsu...@googlegroups.com, sruthi....@gmail.com, Frank Lin

hi krishna, the gmail servers use secure smtp on port 465 by using TSL/SSL. Using stunnel a secure session can be established which is not a feature of a telnet client. Once a secure tunnel is established with the smtp server, you can use the cmd to send emails.
There is also a different telnet client available in which TLS/SSL feature is available but i didn't dig much deeper in it. There might be many other ways to do it. I dont know those.

Krishna Sruthi

unread,
Feb 26, 2014, 12:37:49 AM2/26/14
to sjsu...@googlegroups.com, Frank Lin


Thanx bhavik and kulin for the response.how to use stunnel?I heard that using windows we cant send a mail using telnet is dat true?should i use ubuntu?

Chaithanya Desu

unread,
Feb 26, 2014, 1:33:48 PM2/26/14
to sjsu...@googlegroups.com, Frank Lin
hi everyone, 

Even i am stuck at the same place. not able to proceed after the starttls command by using port number 587, and I am using a MAC so should i add any more steps/commands? and as someone mentioned in the previous conversations i wasn't able to install "telnet ssl" too..can anyone help me out with how to proceed....thanks 
Reply all
Reply to author
Forward
0 new messages