Phpmailer Project Address: Https://github.com/PHPMailer/PHPMailerPhpmailer used in the project, the use of the process error: "Connection failed. Error #2: Stream_socket_client (): SSL operation failed with code 1. OpenSSL Error messages:"Because the third-party SMTP I use i
My phpmailer send the mail code
The code is as follows
Copy Code
Header ("Content-type:text/html;charset=utf-8");Include (' phpmailer/class.phpmailer.php ');Include (' phpmailer/class.smtp.php '); $mail = new Phpmailer ();$mail->issmtp (); Set Mailer to use SMTP$mail->host = "smtp.sohu.com"
An error occurred while sending emails with phpmailer. my environment was previously set up with appserv. the page for sending emails before I recently changed the xampp results failed, and no error was reported. $ mail- gt; "Send ()"; "true" is returned, but "no email" is returned for the sender in my email address, and phpm
An error occurred while sending emails with phpmailer. my environment was previously set up with appserv. the page for sending emails before I recently changed the xampp results failed, and no error was reported. $ mail- gt; send (); returns true, but the sender in my mail is no email, and the recipient cannot receive phpmail
.....
Sorry, I have not made it clear.What I want to achieve is that the email is sent only when the user clicks, the email is always the same, but the recipient's email address is different.(1) when a user clicks to send an email to "zhang san", the program starts to send the email automatically and returns whether the email is sent successfully.(2) the user clicks "Li Si" again to send the email.During the test, the sending failure rate is very high. The debugging result is: SMTP->
Phpmailer version used: 5.2.1
The following are some of the code given in the example folder of Phpmailer: test_gamil_basic.php.
The code is as follows
$mail = new Phpmailer (); $body = file_get_contents (' contents.html '); $body = $_post[' body ']; $body = Eregi_replace ("[]", ", $body); $mail-gt;issmtp (); Telling the class t
The phpmailer mail sending function tested on the local machine is correct. the local machine is in the windowsapachephp environment, but the message Msg: stream_socket_enab appears when you send emails in linux.
The phpmailer mail sending function tested on the local machine is correct. the local machine is in the windows apache php environment, but the message Msg: stream_socket_enable_crypto () is displa
PHPMailer prompts CalledMail () withoutbeingconnected error and uses PHPMailer to send an email. according to the example, I typed the following code:
Require ("class. phpmailer. php "); // the downloaded file must be placed in the directory where the file is located $ mail = new
When I sent an email using phpmailer today, SMTPError: Couldnotauthenticate was prompted. this is a problem with smtp Settings. I have found several solutions on the Internet. Using php today... the SMTP Error: cocould not authenticate is prompted when you use phpmailer to send an email today. this is a problem with smtp Settings. below I have found several solut
When I use phpmailer to send an email today, the system prompts SMTPError: Couldnotauthenticate. this is a problem with smtp Settings. I have found several solutions on the Internet.
The SMTP Error: cocould not authenticate is prompted when you use phpmailer to send an email today. this is a problem with smtp Settings. below I have found several solutions on the
PHPMailer reports the error "Couldnotinstantiatemailfunction". I downloaded the latest library from the phpmailer official website and configured it according to the test file that comes with it. sockets is also supported in php. ini. I have tried a lot of online materials, but I still cannot. Therefore, I would like to thank you for your advice !!! L
An error occurred while sending emails using phpmailer.
Require_once ('class. phpmailer. php'); // the downloaded file must be in the directory where the file is located.
$ Address = $ _ POST ['address'];
Echo $ address ."
";
$ Mail = new PHPMailer (); // Create a mail sending class
$ Address = $ _ POST ['address'];
$
Phpmailer is used in actual work. However, when sending an email, a message indicating a Youmustprovideatleastonerecipientemailaddress error occurs, but my email is extracted from the database .. In addition, it is okay for me to write a program to match all emails in the database with the phpmailer regular expression. does PHP know why? What will happen to this
Phpmailer version used: 5.2.1The following are some of the code given in the example folder of Phpmailer: test_gamil_basic.php.
The code is as follows
Copy Code
$mail = new Phpmailer ();$body = file_get_contents (' contents.html '); $body = $_post[' body '];$body = Eregi_replace ("[]", ", $body);$mail->issmtp (); Telling the class to
My environment used to Appserv, recently changed the XAMPP results before the page sent mail expired, and no error
$mail->send (); return or true, but I send the Outbox in the mailbox is no mail, the Inbox will not receive
Reply to discussion (solution)
Try checking the inbox of the receiving mailbox. Some mailboxes such as: Yahoo with the Phpmailer function to send mail is not in the Inbox.
The abo
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
I use the Phpmailer class to do the Send mail function, prompting 500 error internal Server error;
Call code should be no problem, connect to the online instance write,
Do you need any other steps or configurations before you can send the message?
Reply to discussion (solution)
A 500 error indicates a problem wi
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 code is as follows
Copy Code
function Issmtp () {$this->maile
Ping "smtp.gmail.com" can pass, why Phpmailer but error
Ping Gmail's SMTP server in cmd to get through,
But in the Web site to do the sending of email programs, but always error:
SMTP error:could not connect to SMTP host. Mailer ERROR:SMTP error:could not connect to SMTP host.
What happened:
PHP Code
ISSMTP (); $mail->smtpauth = tru
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.