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 phpmailer-failed to Send the email with phpmailer, no error is reported
My environment was previously set up with appserv. the page that sent the email before I recently changed the xampp result is invalid and no error is reported.
$ Mail-> Send (); returns true, but the sender in my mailbox does not receive emails, nor does it receive emails.
Phpmailer
------ Solution --------------------
Try to check the inbox of the recipient's mailbox. Some mailboxes, such as yahoo, do not use the phpmailer function to send emails in the inbox.
------ Solution --------------------
The above sentence should be said that the email has been sent.
------ Solution --------------------
Drive yourself crazy,
The problem with the landlord may be that the configuration is not properly configured, so that you can easily send your configuration again. let's analyze it.
------ Solution --------------------
The code that you instantiate the phpmailer function and send the email configuration mailbox.
------ Solution --------------------
Phpmailer usage example, you can refer to, hope to help you:
Phpmailer batch mail sending instance code
Phpmailer usage
Example of using phpmailer to send mails in php
Phpmailer description
------ Solution --------------------
In addition, we recommend that you check the error log in apache or nginx, depending on your environment.
Develop the habit of reading logs to identify problems as soon as possible.
------ Solution --------------------
1. enable DEBUG provided by mail
2. confirm that your email sending server supports smtp
------ Solution --------------------
The page for sending the email is invalid only when appserv is replaced with xampp.
The problem is quite simple: it is obvious that php settings have changed.
You can use the fc command to compare the php. ini files on both sides to know the differences.