php mail() function returns false
Our domain was previously hosted on a VPS account and a php mail() function created to query the server and return database changes in a human-readable format worked without any problems.
Recently, we switched to a shared hosting plan, and now that same php mail() function returns false. I have searched around for answers, and it may be related to the fact that we are now on a shared hosting account? Most of the related questions had to do with PrestaShop, which does not appear to apply to us in this situation. We do not use any pre-installed applications.
The email account configuration information is as follows:
Secure SSL/TLS Settings
(Recommended)
Username: admin@[my-domain].org
Password: Use the email account’s password.
Incoming Server: secure170.inmotionhosting.com
IMAP Port: 993
POP3 Port: 995
Outgoing Server: secure170.inmotionhosting.com
SMTP Port: 465
Authentication is required for IMAP, POP3, and SMTP.
For reference, the script simply sets the $email, $subject, $message and $headers variables. The only thing explicitly set in the $headers variable is "From: admin@[my-domain].org". No additional_parameters are normally set, though I did try "-fadmin@[my-domain].org" and "-f admin@[my-domain].org" in further troubleshooting.
Thank you.
Recently, we switched to a shared hosting plan, and now that same php mail() function returns false. I have searched around for answers, and it may be related to the fact that we are now on a shared hosting account? Most of the related questions had to do with PrestaShop, which does not appear to apply to us in this situation. We do not use any pre-installed applications.
The email account configuration information is as follows:
Secure SSL/TLS Settings
(Recommended)
Username: admin@[my-domain].org
Password: Use the email account’s password.
Incoming Server: secure170.inmotionhosting.com
IMAP Port: 993
POP3 Port: 995
Outgoing Server: secure170.inmotionhosting.com
SMTP Port: 465
Authentication is required for IMAP, POP3, and SMTP.
For reference, the script simply sets the $email, $subject, $message and $headers variables. The only thing explicitly set in the $headers variable is "From: admin@[my-domain].org". No additional_parameters are normally set, though I did try "-fadmin@[my-domain].org" and "-f admin@[my-domain].org" in further troubleshooting.
Thank you.
Once a fresh php.ini file was generated, the function worked fine.