架构师_程序员_码农网

Retrieve password
Register

QQ登录

Just one step to get started

Search
View:26756|Reply: 1
打印 上一主题 下一主题

[ NET/C# Using Tencent enterprise mailbox exception: The operation has timed out.

[NET/C# Using Tencent enterprise mailbox exception: The operation has timed out.]
跳转到指定楼层
owner
发表于 2021-4-12 17:32:17| 看该作者回帖奖励|ReverseBrowse|Read Mode
NET/C# code to try to use Tencent enterprise mailbox to send mail, the exception is as follows:

Unhandled exception. System.Net.Mail.SmtpException: The operation has timed out.

Review:

NET/C# code to send email via html template
h ttps:// www.itsvse.com/thread-4424-1-1.html
Net/c# Send mail via html template
h ttps:// www.itsvse.com/thread-2596-1-1.html




h ttps:// work.weixin.qq.com/help?person_id=0&doc_id=423&helpType=exmail

POP3/SMTP protocol
Incoming mail server: pop.exmail.qq.com , using SSL, port number 995
Sending mail server: smtp.exmail.qq.com , using SSL, port number 465
Overseas users can use the following servers
Incoming mail server: hwpop.exmail.qq.com , using SSL, port number 995
Sending mail server: hwsmtp.exmail.qq.com , using SSL, port number 465
Solution

Use port 587 to send mail.



Port 465 uses smtps protocol
Port 587 uses starttls protocol

Port 465 is for SSL/TLS communication protocol The content is protected at the beginning and the original text cannot be seen.

Port 465 (SMTPS): Port 465 is open for SMTPS (SMTP-over-SSL) protocol service, which is a variant of SMTP protocol based on SSL security protocol, which inherits the asymmetric encryption of SSL security protocol of a high degree of security and reliability, which prevents the leakage of emails.SMTPS is also used to send emails, just more secure, just like SMTP protocol. SMTPS is the same as SMTP protocol, it is also used to send emails, but it is more secure, preventing emails from being intercepted and leaked by hackers, and also realizing the anti-repudiation function of email senders. It prevents the sender from deleting the email after sending it and refusing to admit that he has sent such an email.

Port 587 is the STARTTLS protocol which belongs to the TLS communication protocol, but he protects the original text only after the execution of the STARTTLS command.

h ttps:// stackoverflow.com/questions/15796530/what-is-the-difference-between-ports-465-and-587


The code is below:

(End)




Previous:Fudan University General Education Exam: Campus Culture Education
Next: .NET/C# message queue of Kafka operation [with source code]
Code farmer network, only published in the process of practice, encountered technical difficulties, do not mislead others.
sofa
Posted on 2023-4-20 09:18:57|Only View Author
Thanks for sharing!
Code farmer network, only published in the process of practice, encountered technical difficulties, do not mislead others.
You need to log in before you can post back Log in | Register

This version of the integral rules

DISCLAIMER:
All software, programming materials or articles released by the Code Farmer Network are limited to study and research purposes; the above content shall not be used for commercial or illegal purposes, otherwise, all the consequences please be borne by the user. This site information from the network, copyright dispute has nothing to do with this site. You must completely remove the above content from your computer within 24 hours of downloading. If you like the program, please support the genuine software, buy registration and get better genuine service. If there is any infringement, please contact us by email to deal with it.

Mail To:help@itsvse.com

QQ| ( ICP备14021824号-2 )|Sitemap

GMT+8, 2024-9-19 01:08

Quick ReplyBack to topBack to list