Fix for MyBB emails going to spam box

by HaVoK - 24-02-2016, 02:18 AM
Member
Prime
Posts:
166
Joined:
Feb 2015
Likes:
5
Credits:
3
Reputation:
7
2 Years of Service
#1
OP
Posted: 24-02-2016, 02:18 AM
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 :
Please register or login in order to unlock hidden content.

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.
Tropical
29-02-2016, 06:14 AM
Root@NBB:-$
Prime
Posts:
118
Joined:
Feb 2016
Likes:
3
Credits:
111
Reputation:
9
1 Year of Service
#2
Posted: 29-02-2016, 06:13 AM
Thank you for this man.
Member
Prime
Posts:
166
Joined:
Feb 2015
Likes:
5
Credits:
3
Reputation:
7
2 Years of Service
#3
OP
Posted: 29-02-2016, 06:49 AM
(29-02-2016, 06:13 AM)Finn Wrote: Thank you for this man.

No problem, enjoy.
ᶠᵃᵈʸ'ˢ ʷᵃᶦᶠᵘ
Posts:
542
Joined:
Jan 2015
Likes:
65
Credits:
501
Reputation:
37
2 Years of Service
#4
Posted: 29-02-2016, 07:19 AM
Quote: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.

Worth noting that this isn't guaranteed.
Faded is cute Heart
أ) هو ميمي)
Angels
Posts:
1,987
Joined:
Jan 2015
Likes:
113
Credits:
424
Reputation:
90
2 Years of Service
#5
Posted: 29-02-2016, 08:12 AM
But Gmail will mark it as spam if the SMTP server the mail is coming from is not proper. And something tells me that changing a line in a PHP file is not going to change a SMTP servers settings.
xxx
Member
Posts:
137
Joined:
Sep 2015
Likes:
2
Credits:
2
Reputation:
5
1 Year of Service
#6
User got warned for this post
Posted: 29-02-2016, 10:48 AM
Thanks will try it.
thanks for sharing.
Aokie
Posts:
882
Joined:
Feb 2015
Likes:
54
Credits:
1,286
Reputation:
26
2 Years of Service
#7
Posted: 29-02-2016, 12:48 PM
Not worth it. Seriously, stop sending mail from your backend.
Member
Prime
Posts:
166
Joined:
Feb 2015
Likes:
5
Credits:
3
Reputation:
7
2 Years of Service
#8
OP
Posted: 29-02-2016, 05:36 PM (This post was last modified: 29-02-2016, 05:40 PM by HaVoK.)
(29-02-2016, 07:19 AM)Senpai Wrote:
Quote: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.

Worth noting that this isn't guaranteed.

May work for some, but for those that can't afford another server it works for now. In addition and off topic, but fuck your avatar. Everytime I am on the index I just star at it.

(29-02-2016, 08:12 AM)NSA Wrote: But Gmail will mark it as spam if the SMTP server the mail is coming from is not proper. And something tells me that changing a line in a PHP file is not going to change a SMTP servers settings.

This method fixes the whole gmail issue.


(29-02-2016, 12:48 PM)zGeek Wrote: Not worth it. Seriously, stop sending mail from your backend.

I do agree, but this method fixes the whole spam box for those that can't afford an additional server.
أ) هو ميمي)
Angels
Posts:
1,987
Joined:
Jan 2015
Likes:
113
Credits:
424
Reputation:
90
2 Years of Service
#9
Posted: 29-02-2016, 06:16 PM
(29-02-2016, 05:36 PM)HaVoK Wrote:
(29-02-2016, 07:19 AM)Senpai Wrote:
Quote: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.

Worth noting that this isn't guaranteed.

May work for some, but for those that can't afford another server it works for now. In addition and off topic, but fuck your avatar. Everytime I am on the index I just star at it.

(29-02-2016, 08:12 AM)NSA Wrote: But Gmail will mark it as spam if the SMTP server the mail is coming from is not proper. And something tells me that changing a line in a PHP file is not going to change a SMTP servers settings.

This method fixes the whole gmail issue.


(29-02-2016, 12:48 PM)zGeek Wrote: Not worth it. Seriously, stop sending mail from your backend.

I do agree, but this method fixes the whole spam box for those that can't afford an additional server.

No it won't. Not with a badly configured SMTP server.
xxx
Closed Account
Posts:
76
Joined:
Jun 2015
Likes:
7
Credits:
65
Reputation:
0
1 Year of Service
#10
Posted: 02-05-2016, 11:50 PM
nice man, thanks bro
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)