简体   繁体   中英

Sending Mail via Telnet

I Tried to send email via telnet. But it doesn't accept the data part. The following is the problem occured.

$ telnet 74.125.68.109 25
Trying 74.125.68.109...
Connected to 74.125.68.109.
Escape character is '^]'.
220 smtp.gmail.com ESMTP xr8sm26040278pab.26 - gsmtp

mail from: mohangtrichy@gmail.com
503 5.5.1 EHLO/HELO first. xr8sm26040278pab.26 - gsmtp

mail to: raju10anand@gmail.com
503 5.5.1 EHLO/HELO first. xr8sm26040278pab.26 - gsmtp

data
503 5.5.1 EHLO/HELO first. xr8sm26040278pab.26 - gsmtp
This mail is sent from telnet...
502 5.5.1 Unrecognized command. xr8sm26040278pab.26 - gsmtp
^]
telnet> Connection closed.
$

Here what is the problem after data command. Is there any mistake I did. 74.125.68.109 is the mail address of gmail.

It's telling you that you aren't saying HELO as your first command. After each line it's yelling at you again that you didn't say HELO

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM