Use the phpmailer class to send emails, prompting 500 exceptions.

Source: Internet
Author: User
The phpmailer class is used for sending mails, prompting 500 error? I use the phpmailer class to send emails, prompting 500 Error Internal & nbsp; Server & nbsp; Error; the call code should be okay. I wrote it through an online instance, is there any other steps or configuration required before this function can be used to send emails? The phpmailer class is used to send emails. why is the error 500 returned?
I use the phpmailer class to send mails, prompting 500 Error Internal Server Error;
It should be okay to call the code. it was written by an online instance,
Is there any other steps or configuration required before this function can be used to send emails?

Email


------ Solution --------------------
The error 500 indicates that your code is faulty!
Enable the php error display function and debug it.
------ Solution --------------------
Add the php file header
Date_default_timezone_set ("PRC"); try it.
Or set the time zone in php. ini: date. timezone = PRC.

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.