Stunnel is a program that can use SSL to encrypt any TCP connection. It can run on a variety of UNIX and Windows operating systems. In this way, it effectively solves the problem that SSL cannot encrypt the data transmitted by existing applications.
In linux, when Google SMTP is used to send mail to maintain the server, a server error warning system is often required, and mail is a good way. In linux, mail is generally used to write emails, and the sendmail service is used by default for
Recently in the mail to send the interface to the problems encountered and solutions to tell you want to know the message to help people
The original program part of the code is as follows
Set mail message sender address, recipient address,
e-mail to remind the role, when the crawler encountered an exception or the server encountered problems, you can report to yourself in a timely manner by email.The protocol for sending mail is Stmp,python built-in support for SMTP, which can send
PackageCom.sm.modules.oa.web;Importjavax.mail.Session;ImportJavax.mail.Transport;Importjavax.mail.internet.InternetAddress;ImportJavax.mail.internet.MimeMessage;Importjava.util.Date;Importjava.util.Properties; Public classSend {//Sender's mailbox
Relevant background knowledgeTo clarify the implementation principle of the HTTPS protocol, at least the following background knowledge is Required.Get an overview of the implications of several basic terms (HTTPS, SSL, TLS)Get an overview of HTTP
Table (1) SMTP CodeCode definition421 service not available, hosts in the closing transmission channel brackets cannot provide normal services, close the transmission pipeline, and emails will be stuck on the host450 requested mail action not taken:
SSL-based javamail
Recently, a project needs to support SSL-based javamail to send and receive emails. After some investigation, the javamail method using SSL is summarized as follows.Javamail providers lack support for SSL connections. Therefore,
Send failed
error 1:SMTPLIB. Smtpauthenticationerror: (A, B ' User has no permission ')When we use Python to send a message, the custom client logs on with the user name and password, and then uses the SMTP service to send the mail, and the newly
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.