Test mail using telnet

Test mail using telnet

Posted By: pmietlicki

Published to Work on Jun 04, 2015

Under Linux, if you just want to try sending email use :

echo "This will go into the body of the mail." | mail -s "Hello world" you@youremailid.com

With telnet :

telnet smtp.server.fr 25

ESMTP Exim 4.71 - "ATLAS SMTP Service" Wed, 13 Jul 201 1 10:47:06 +0100

EHLO smtp.server.fr

Hello hns01-fw.internal.test.net [195.224.160.13]

250-SIZE 31457280

250-PIPELINING

250-AUTH PLAIN LOGIN

250 HELP

AUTH LOGIN

334 DXNl4gddhbWU3

cwtui3lAcmlja2ljaeFoYewuY2 (Base 64 encoded username)

334 UGFzc3dvcmQ6

YeGjc3ducmE (Base 64 encoded password)

235 Authentication succeeded

MAIL FROM: emailaddress@domain.com

250 OK

RCPT TO: recipent@theirdomain.com

250 Accepted

DATA

354 Enter message, ending with "." on a line by itself

Subject Test using Telnet

.

250 OK id=4Qgw3m-023484q-I5

Tags: mail, smtp, telnet

Archive