MyBB Community Forums

Full Version: [PHP Mail] Mail sending in test script but not for forum.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I had this issue with a previous host; I moved one of my sites to A2Hosting but still having issues with PHP Mail. I'm struggling here and just not sure what else to try



Can't activate accounts or reset password via PHP mail handler.

Tried the mail test script and it sends BUT it doesn't send from the email addressed as the "Admin Email" in board settings. Email is sent from [email protected].

Went further to the host restrictions part and the "mail($to, $subject, $message, $headers);" doesn't exist in functions.php but i did find
function my_mail($to, $subject, $message, $from="", $charset="", $headers="", $keep_alive=false, $format="text", $message_text="", $return_email="")
So I added the ini_set parameters above that line.

Still no luck. I'm sort of confused here. Am I doing this incorrectly?

A2 keeps sending me to: https://www.a2hosting.com/kb/developer-c...l-messages