Send emails via Telnet (SMTP authentication supported)

Source: Internet
Author: User

Send emails via Telnet (SMTP authentication supported)


1. Connect to the remote server via Telnet

Yes

Telnet mail.test.com 25

Or

Telnet mail.test.com SMTP

2. Say hello to the server

Helo mail.test.com

The server should return
250

If the server SMTP needs to be verified, perform step 3; otherwise, proceed to step 4.
3. Input

AUTH LOGIN

Will prompt you once
334 vxnlcm5hbwu6
And
334 ugfzc3dvcmq6
The following message prompts you to enter the user name and password. The information is base64-encoded.
The entered username and password must also be encoded. Here is an encoding and decoding tool.
After SMTP authentication is passed
235 2.0.0 authentication successful
4. Write a letter
Input

Mail from: <juhui@test.com>

And

Rcpt to: <phpbird@test.com>

Are sent from
If it is normal, 250 should be returned
Input

Data

Start writing

Subject: Test mail
Test email
.

250 2.0.0 OK: queued as 93223136c8e
Exit

Quit

The Postfix is successfully tried.

Popularity: 37%

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.