This article is a mirror article of machine translation, please click here to jump to the original article.

View: 48503|Reply: 1

[Source] .NET/C# Exception using Tencent Enterprise Mailbox: The operation has timed out.

[Copy link]
Posted on 4/12/2021 5:32:17 PM | | | |
When trying to send an email using Tencent Enterprise Email with .NET/C# code, the following exception occurs:

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

Review:

.net/c# send mail via html templates
https://www.itsvse.com/thread-4424-1-1.html
C# implements the function of sending emails
https://www.itsvse.com/thread-2596-1-1.html




The hyperlink login is visible.

POP3/SMTP protocol
Receiving mail server: pop.exmail.qq.com, using SSL, port number 995
Sending mail server: smtp.exmail.qq.com, using SSL, port number 465
The following servers are available for overseas users
Receiving mail server: hwpop.exmail.qq.com, using SSL, port number 995
Sending mail server: hwsmtp.exmail.qq.com, using SSL, port number 465
solution

Using port 587, send mail.



Port 465 uses the SMTPS protocol
Port 587 uses the starttls protocol

Port 465 is an SSL/TLS protocol, and the content is protected from the beginning, so you can't see the original text.

Port 465 (SMTPS): Port 465 is open for SMTPS (SMTP-over-SSL) protocol services, which is a variant of the SMTP protocol based on the SSL security protocol, which inherits the high security and reliability of asymmetric encryption of the SSL security protocol to prevent email leakage. SMTPS, like the SMTP protocol, is also used to send emails, but it is more secure, prevents emails from being intercepted and leaked by hackers, and can also realize the anti-denial function of email senders. Prevent the sender from deleting the sent email after sending it, and refuse to admit that such an email has been sent.

Port 587 is part of the STARTTLS protocol, but he protected the original text after the STARTTLS command was executed.

The hyperlink login is visible.


The code is as follows:

(End)




Previous:Fudan University General Education Examination: Campus Cultural Education
Next:Kafka operations for .NET/C# message queues [with source code]
Posted on 4/20/2023 9:18:57 AM |
Thanks for sharing
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com