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.
Thank you for contacting us about issues with the php mail() function. Several of us looked into this, and we cannot determine what code would work on a vps, but not on shared. Especially, if nothing is explicitly set (such as paths, etc).
We are happy to help you troubleshoot your script further, but will need to see the actual coding to proceed.
Let us know if you have any further questions.
Thank you,
John-Paul