the transfer protocolX.7.5 the system authorized to authenticate or decrypt the email cannot complete this action because the required information is incomplete.X.7.6 the system authorized to authenticate or decrypt the email cannot complete this action because the algorithm does not supportX.7.7 message integrity failure the system authorized to authenticate the email cannot complete this action because the email has been damaged
**************************************** ***********************
1. In the automated test, when the calling mail module automatically sends the mail, the running foot of this report is wrong:Smtplib. Smtpdataerror: (554, ' DT:SPM 126 smtp5,jtkowad3mjz2c1jxlck2aa--. 52114s2 1465021431,please See http://mail.163.com/ help/help_spam_16.htm?ip=123.114.121.110hostid=smtp5time=1465021431 ')2. Workaround (Here is Python for example):#定义发送邮件def send_mail (file_new):f = open (File_new, ' RB ')Mail_body = F.read ()F.close ()
220.181.12.13 ...Connected to smtp.163.com.Escape character is ' ^] '.163.com Anti-Spam GT for Coremail System (163com[20141201])EHLO 163.COM250-mail250-pipelining250-auth LOGIN PLAIN250-auth=login PLAIN250-coremail 1uxr2xkj7kg0xki17xgru7i0s8fy2u3uj8cz28x1uuuuu7ic2i0y2urfveoruca0xdruuuuj250-starttls8BITMIMEAUTH LOGIN334 Dxnlcm5hbwu6cwl4aw5fbw9uaxrvcg==334 Ugfzc3dvcmq6axb2d2rjzw1ozgp5dnv0zq==235 Authentication SuccessfulProblem, Solution ~ The final c
Phpmailer is a great open source messaging class, and it's very simple to use, but for a virtual host, there are always restrictions. Just now I encountered an "SMTP error:could not connect to SMTP host" error using Phpmailer on a virtual host. Here are two ways to fix this:
This error indicates that the virtual host
DATA
Tell the recipient about this email. Next we will send the specific content of the email.
QUIT
After the email content is entered, execute this command to exit
Php implements email sending
Directly Add code
Class Mailer {private $ host; private $ port = 25; private $ user; private $ pass; private $ debug = false; private $ sock; public function _ construct ($ host, $ port, $ user, $ pass, $ debug = false)
problems.SolutionFind the class. smtp. Php file, which is about 128 lines of the file. There is such a piece of code:// Connect to the smtp server$ This-> smtp_conn = @ fsockopen ($ host, // the host of the server$ Port, // the port to use$ Errno, // error number if any$ Errstr, //
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, title, subject
MailMessage mail = new MailMessage ("xxxxxxx@sina.com", "zzzzzzz@sina.com", "title", "Subject");
//Set mail subject format
. bodyencoding = Encoding.UTF8;
Sets whether the message body
' # setting up the outgoing server address port=25# Set the outgoing server port number. Note that there are SSL and non-SSL two forms sender= ' XXXXXX@163.com ' # set up the email address, be sure to register your own mailbox pwd= ' XXXXXX ' # set the password of the email, etc will be used in receiver= ' XXXXXXXX@YY.com ' # set mail recipient, can be a button mailbox body= ' error 3:SMTPLIB. Smtpdataerror: (
mailbox as a malicious login. try another email.
3) paste your code, otherwise others do not know how to help you check
------ Solution --------------------
It is very likely that your QQ mailbox settings are incorrect .. check that pop3 and smtp services have been activated.
------ Solution --------------------
Need EHLO and AUTH first!
Isn't that clear?
You must shake hands first and request to log in.
) paste your code, otherwise others do not know how to help you check
------ Solution --------------------
It is very likely that your QQ mailbox settings are incorrect .. check that pop3 and smtp services have been activated.
------ Solution --------------------
Need EHLO and AUTH first!
Isn't that clear?
You must shake hands first and request to log in.
PHP code
use an HTML compatible email viewer! "; Optional, comment out and test $mail-gt;msghtml ($body); $address = "whoto@otherdomain.com"; $mail-gt;addaddress ($address, "John Doe"); $mail-gt;addattachment ("Images/phpmailer.gif"); Attachment $mail-gt;addattachment ("Images/phpmailer_mini.gif"); Attachment if (! $mail-gt;send ()) { echo "Mailer Error:". $mail-gt;errorinfo; } else { echo "Message sent!"; }
According to the
! with an HTML; Optional, comment out and test$mail->msghtml ($body);$address = "whoto@otherdomain.com";$mail->addaddress ($address, "John Doe");$mail->addattachment ("Images/phpmailer.gif"); Attachment$mail->addattachment ("Images/phpmailer_mini.gif"); Attachmentif (! $mail->send ()) {echo "Mailer Error:". $mail->errorinfo;} else {echo "Message sent!";}
According to the code given in this example,
Today, when you use Phpmailer to send SMTP mail, you are prompted for an SMTP Error:could not authenticate error, where the password account is correct, and the mailbox is set to turn on SMTP.
Google Baidu over again, some say that the server has disabled the port, and some say that the class.phpmailer.php in the
as localhost.The Python SMTP object uses the sendmail method to send emails. The syntax is as follows:
The code is as follows:
SMTP. sendmail (from_addr, to_addrs, msg [, mail_options, rcpt_options]
Parameter description:From_addr: email sender address.To_addrs: string list, Mail sending address.Msg: send messagesNote that the third parameter, msg is a string,
Python failed to send mail via SMTP:Error 1:smtplib. Smtpauthenticationerror: (550, B ' User has no permission ')When we use Python to send a message, the custom client logs in based on the user name and password, and then uses the SMTP service to send mail, and the newly registered 163 mailbox is not turned on by default (enabled by default for the specified mailbox master client), so the login is always denied. Workaround (Take 163 mailboxes for exa
The code for sending mails using SMTP in php the latest project needs to use SMTP to send mails. the previous library class does not exist and does not like to install pear or use the net/smtp class of pear, it is too complicated. The core is extracted from discuz and slightly modified.
Find the
How to receive error messages returned by the smtp server
For example, the mail address does not exist, is it incorrect, or is not sent successfully?
Requirement: In fact, I just want to add the Invalid Address, or failed to send the email multiple times, and then add the email address to the blacklist.
N9walker: When an email is sent to the destination by the mail server, it returns an email to the sender'
= true; Sc. Deliverymethod = Smtpdeliverymethod.network; Sc. Credentials = NC; If this is reported to mail from the address must be same as authorization user this error, is your QQ mailbox does not open SMTP,//to your own mailbox settings can be! Under the account, if is 163 mailbox, below should become smtp.163.com SC.
recipient's email address is not allowed. Check whether the recipient's address is correct.
Q: The server says: 553 sorry, your envelop sender is in my badmailfrom listA: The server limits the recipient's address and can only send emails to one SMTP server.
Q: The server says: 554 transaction failedQ: The server says: 451 requested action aborted, errno = 28A: Transmission failed. Check for network problem
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.