Send SMTP mail directly using Telnet

Source: Internet
Author: User

C: \ Windows> Telnet

Microsoft Telnet> open 10.103.1.4 25
220 xxx.com.cn Microsoft esmtp mail Service, Version: 6.0.20.0.3959 ready at Fri, 21 Oct 2011 12:50:04 + 0800

EHLO
250-xxx.com.cn Hello [10.103.4.57]
250-TURN
December 250-SIZE
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250-X-EXPS GSSAPI NTLM LOGIN
250-X-EXPS = LOGIN
250-AUTH GSSAPI NTLM LOGIN
250-AUTH = LOGIN
250-X-LINK2STATE
250-XEXCH50
250 OK

AUTH LOGIN
334 VXNlcm5hbWU6

D3FlcnA = // user name, base64-encoded
334 UGFzc3dvcmQ6

D3FlcnAxMjM = // password, encoded in base64
235 2.7.0 Authentication successful.

Mail from: <xxx@xxx.com.cn> // MAIL address
250 2.1.0 xxx@xxx.com.cn... Sender OK

Rcpt to: <xxx@xxx.com.cn> // mail recipient address
250 2.1.5 xxx@xxx.com.cn

DATA // email content
354 Start mail input; end with <CRLF>. <CRLF>
This is a smtp mail.
.

250 2.6.0 <WQMS01HIUv9nDqUV4qU000009e6@xxxcom.cn> Queued mail for delivery

QUIT

Microsoft Telnet> close
Microsoft Telnet> quit

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.