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 ()
This is a creation in
Article, where the information may have evolved or changed.
Many versions of the Internet send mail is used; Number, the key is that multiple message segmentation can not be used; Number, need to use, number
//Send mailFunc SendMail (subjectstring, messagestring, from*mail. Address, to []string, Smtpconfig Smtpconfig, ishtmlBOOL) Error {auth:=SMTP. Plainauth ("", Smtpconfig.username,
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
you may be interested in
Fatal error call to undefined function date_default_timezone_set ()
Fatal error Class ' soapclient ' not found in ... Error handling methods
Fatal error Class ' ziparchive ' not found ... The solution
PHP tip php warning:date (): It is not safe to rely on the ... The wrong solut
() with the pfsockopen () function. If the pfsockopen function is disabled, you can replace it with other Socket functions, such as stream_socket_client ()
Change @ fsockopen to @ pfsockopen in class. smtp. php.
Set
$this->smtp_conn = @fsockopen($host, // the host of the server $port, // the port to use $errno, // error number if any
Cause analysisIf this problem occurs, the name of the SMTP host Solution: It depends on the email payment does not support sending and receiving mails by pop3. This can be viewed officially by email, such as QQ mail.Phpmailer error SMTP Error: cocould not connect to SMTP hos
unsuccessfulQ: The server says: 452 insufficient system storageA: An error occurred while using ESMTP authentication. Check ESMTP settings and try multiple times.
Q: The server says: 553 Q: The server says: 550 unable to relay...A: When the WinGate Proxy Server is used to send emails. In Wingate, "POP3 mailbox account" must use the "username # POP3 address" format, but the "Personal Information" in "account attributes" must be in the general format.
using ESMTP authentication error, check the ESMTP settings, try more than a few times.
Question: The server says:553 Question: The server says:550 unable to relay for ...Answer: More than now use the Wingate Proxy server to send mail. Although in Wingate "POP3 mailbox Account" to use "username #pop3 address" format, but in the "Account properties" in the "personal information" to fill in the general format.
Problem: The server says:553 mailbox name
' # 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: (
For smtp mail, who can help check the 503 Error: needEHLOandAUTHfirstResolvingSMTPserverdomain quot; smtp.qq.com quot ;... connectingtohostaddress quot; 119.147.74.45 quot; port25... connecte, who can help with smtp mail? 503 Error: need EHLO and AUTH first
Resolving SMTP
For smtp mail, who can help me see 503 Error: needEHLOandAUTHfirstResolvingSMTPserverdomain quot; smtp.qq.com quot;... Connectingtohost who can help me see 503 Error: need EHLO and AUTH first
Resolving SMTP server domain "smtp.qq.com "...
Connecting to host address "119.147.74.45" port 25...
Connected to
somewhere else, my test is successful, it feels good, you can try
$ip =$_server[' remote_addr '];OK for the mailbox to send.Include "smtp.class.php"; Send message classes that need to be included$smtpserver = "smtp.163.com"; The address of your SMTP server$smtpserver = ""; SMTP server address$port = 25; The port of the SM
Original issue background:A few days ago, ops colleagues suddenly found that Zabbix monitoring no longer send mail, and Zabbix monitoring interface status can be displayed. Because there have been similar problems, estimated to be 163 mailbox problems, so the login for the alarm mailbox, directly through the Web page to send mail also error, it is estimated that the mail anti-spam services are limited, need to wait until the next day to recover (the n
The combination of SMTP service and Telnet service makes network management more convenient. Today, many enterprises use this network. However, our users recently asked about the telnet smtp 535 Error. Today, we will explain the Error content and solution of telnet smtp 535
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 code given in th
somewhere else, my test is successful, it feels good, you can try
$ip =$_server[' remote_addr '];OK for the mailbox to send.Include "smtp.class.php"; Send message classes that need to be included$smtpserver = "smtp.163.com"; The address of your SMTP server$smtpserver = ""; SMTP server address$port = 25; The port of the SM
! 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, I encountered the following
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
The server is windowserver2008 and php needs to send emails, so the smtp mail server built by myself always has the 452 error outofmemory. Is it a memory problem? Is there any other way for a third party to build an smtp server like google or sina? Easy to figure...
The server is window server 2008 and php needs to send emails. Therefore, the self-built
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.