telnet myserver.com 25A successful connection will produce
...
Connected to myserver.com
Escape character is '^]'.
220 myserver.com ESMTP SendmailNext, specify the email source domain:
HELO local.domain.comThis should result in:
250 myserver.com Hello local.domain.com [1.2.3.4]Specify the email source address:
MAIL FROM: myaddress@domain.comThis should result in:
250 2.1.0 myaddress@domain.com... Sender okSpecify the recipient address:
RCPT TO: otheraddress@myserver.comThis should result in:
250 2.1.0 otheraddress@myserver.com... Recipient okThen start the message with this command
DATATo specify a Subject, CC: list, etc., add for example:
Subject:my subject
followed by the enter key twice, to conform to RFC 882.Then type the rest of your message:
Hello, world
Then, close your message with . To close the SMTP connection:
QUIT