Saturday, November 17, 2012

How to send an email using telnet

> telnet youremailsever.com 25

# handshake
helo youremailsever.com

# set from
mail from: sender@email.com

# set to
rcpt to: receiver1@email.com

# set cc if you want to send the email to multiply receivers
rcpt to: receiver2@email.com

# email content
data
# show in the email
from: sender
to: receiver
cc: receiver1; receiver2; ...
subject: hello world
date: 17 Nov 2012
hello world!
# need "." in a separate line to terminate the email content
.

# quit telnet connecton
quit

No comments:

Post a Comment