Protocols >> SMTP >>  How to send mail using smtp via telnet command at command prompt

telnet mail.domain.ext 25<Enter> Connected to mail.domain.ext. Escape character is '^]'. 220 mail.domain.ext ESMTP Sendmail ?version-number?; ?date time gmtoffset? HELO<Enter> 250 mail.domain.ext Hello [], pleased to meet you MAIL FROM: mail@domain.ext<Enter> 250 2.1.0 mail@domain.ext... Sender ok RCPT TO: mail@otherdomain.ext<Enter> 250 2.1.0 mail@otherdomain.ext... Recipient ok DATA<Enter> Subject: <subject of email><Enter> From: <sender's email address><Enter> To: <recipient's email addresses><Enter> <Enter> Body of email <last blank line> .<Enter> (single period on a newline followed by Enter) QUIT<enter> Another example =============== telnet: > telnet smtp telnet: Trying telnet: Connected to telnet: Escape character is '^]'. server: 220 ESMTP server ready Tue, 20 Jan 2004 22:33:36 0200 client: HELO server: 250 client: MAIL from: <> server: 250 Sender <> Ok client: RCPT to: <> server: 250 Recipient <> Ok client: DATA server: 354 Ok Send data ending with <CRLF>.<CRLF> client: From: client: To: client: Subject: Test message client: client: This is a test message. client: . server: 250 Message received: client: QUIT server: 221 ESMTP server closing connection