wp_mail issue, not receiving emails. issue being caused by headers in phpmailer
-
hi,
i had busy day today as on one of my client’s wordpress website was having issues with emails being sent out from wordpress, plugins, contact forms.there were no errors on any plugin or error_log. all showed emails being sent with true status.
after that i started checking php mail function and it worked without any issue and this time i received the email.
after talking to support, sending emails multiple times they were unable to help as they said everything was ok on their end.
so i took to wordpress core files to check if i can find something.
after checking for almost 2 hours found the issue to be caused by $header variable being used in phpmailer and if i replaced it with static headers for html mail the email started working again.so, now i am confused with how to fix the header issue so it works when a plugin sends headers for like cc or bcc and is this a bug or possible issue due to hosting setup?
Server is linux and hosting provider is GoDaddy
Thank You
Raj
- The topic ‘wp_mail issue, not receiving emails. issue being caused by headers in phpmailer’ is closed to new replies.