Fix for MyBB emails going to spam box
If all of your emails, sent from php mail, or sendmail, are being put straight into the spam box, the way I fixed it was by changing line 318 in inc/class_mailhandler.php from :
"$this->headers .= "X-Mailer: MyBB."{$this->delimiter}";"
$this->headers .= "X-Mailer: PHP/".phpversion()."{$this->delimiter}";

Now all of the mail, whether it be a user emailing another user, or a mass email, will go to the inbox, rather than the spam box.
i'll try it and thx for share bro
Thanks for sharing, didn't work for me, hotmail users still aren't getting them. We need an unsubscribe header like Mailchimp use
Note that this does disclose your PHP version, which is arguably not a smart thing to do if you're ever running a potentially out of date version.

Work on DKIM, SPF, and DMARC records first. Fixing those also helps reduce the spam score of messages significantly.
PGP Key (Fingerprint: 23B6 F4C0 FE2D 45AA 61A0 1E86 DB87 09DC DD87 6E40)

Forum Jump:

Users browsing this thread: 1 Guest(s)