Tag Archives: telnet

Send email from command line

If you need to send an email through a smtp server (and you are allowed to do that) you can use the following lines after you telnet to that server:

helo mail
mail from: sender@example.com
rcpt to: recipient@example.com
From: "Sender" <sender@example.com>
To: "Recipient" <recipient@example.com>
Subject: Here you type your subject
Here you type your body.