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.