An error occurred while sending the email with phpmailer.-php Tutorial

Source: Internet
Author: User
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.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.