2022-09-17, 01:50 PM
I'm trying to manually override the default system mailing address.
Emails are not being sent from the email address I have specified in Admin CP --> Config --> Admin Email & Return Email. They are being sent from the system default which uses my hosts domain and fail to deliver (blocked by email providers like Gmail). I made a test email for [email protected] and sent an email to a friend's gmail, worked beautifully. So I figured I would use this email instead!
However, it doesn't work. It still sends from the default system address despite having the [email protected] in Admin Email & Return Email.
I'd like to manually override the email in which PHP mail sends. Found this gem from 1.6 but I can't find this anywhere in functions.php.
Help would be much appreciated!
Literally solved this problem 5 minutes after posting.
For anyone else coming across this later on I found:
Emails are not being sent from the email address I have specified in Admin CP --> Config --> Admin Email & Return Email. They are being sent from the system default which uses my hosts domain and fail to deliver (blocked by email providers like Gmail). I made a test email for [email protected] and sent an email to a friend's gmail, worked beautifully. So I figured I would use this email instead!
However, it doesn't work. It still sends from the default system address despite having the [email protected] in Admin Email & Return Email.
I'd like to manually override the email in which PHP mail sends. Found this gem from 1.6 but I can't find this anywhere in functions.php.
Help would be much appreciated!
Literally solved this problem 5 minutes after posting.
For anyone else coming across this later on I found:
function my_mail($to, $subject, $message, $from="", $charset="", $headers="", $keep_alive=false, $format="text", $message_text="", $return_email="")
And added in the email to the $from section, it worked lol:function my_mail($to, $subject, $message, $from="[email protected]", $charset="", $headers="", $keep_alive=false, $format="text", $message_text="", $return_email="")