Telnet to your smtp server with the command:
telnet smtp.mydomain.com 25
Syntax :
telnet {smtp_domain_name} {port_number}
And copy and paste the below (changing information in bold):
helo
mydomain.commail from:
[email protected]rcpt to:
[email protected]data
From:
[email protected]Subject: test mail from command line
This is a test message. Sent from
machinename.
Note : Do not forgot the "." at end which represents end of the message.