About the port number of the server that sent the message

Source: Internet
Author: User

Today, a small email message, all the parameters are set, the server is not responding.

At first the suspicion was that the mail server was not set up, and the mail server and Outlook were found to be consistent.

Suspect port number 25 is incorrect. Most of the information is said to be 25.

。。。

Later found this page, said

Usually an outgoing server employs port 25:it ' s the default SMTP port. However, some IPs deny its use because of the massive spam and malware traffic by which is affected. This issue was raised in particular when you need to switch to another isp–for instance, when you ' re travelling and Conne Cting to a new provider. In this case you can try to use port 587 or port 465 to avoid the block.

More in Detail:port 587 are supported by almost every outgoing SMTP server and it's useful for unencrypted or TLS connecti Ons While Port 465 are the right choice if your need to connect via SSL.

Excerpt from: HTTP://WWW.SERVERSMTP.COM/EN/PORT-FOR-SMTP

That is: 25 is the default port, may be because of spam and other reasons can not be used, then consider 587. Generally for non-encrypted request 587 can be used.

After modifying the port number to 587, it is OK.

Report:

C # Development mail client uses SmtpClient.

Use principle: Need to set the mail server address, and port number.

About the port number of the server that sent the message

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.