Failed to send mail with Phpmailer, no error

Source: Internet
Author: User
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 above sentence should be said to have been sent in the message.

You're crazy about yourself,
Landlord of the problem may be where is not configured well, convenient to send your configuration again, let us analyze

You're crazy about yourself,
Landlord of the problem may be where is not configured well, convenient to send your configuration again, let us analyze

Inbox Outbox There is nothing, you say configuration is what configuration, can say specific, thank you!

Is the piece of code that you instantiate the Phpmailer function and send the mail configuration mailbox.

Phpmailer Use example, you can refer to, hope to help you:
Phpmailer instance code for bulk send messages
About the use of Phpmailer
Example of PHP using Phpmailer to send mail
Phpmailer instructions for use in Chinese

It is also recommended that you look at the error log in Apache or Nginx, depending on your environment.
Develop the habit of looking at the diary, you can find the problem early.

1. Turn on the debug of the mail comes with
2. Confirm that your sending mailbox server supports SMTP

Just replaced the Appserv with the XAMPP results before the page that sent the message expired
So the problem is simple: obviously PHP settings have changed

Compare the php.ini files on both sides with the FC command to know the difference.

Because then automatically ... So I almost forgot this place.

  • 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.