SMTP return code upon message sending completion should be checked #3984
Labels
b:1.8
Branch: 1.8.x
s:duplicate
Status: Duplicate. Has been reported already, issue for the same exists
t:bug
Type: Bug. An issue causing error / flaw / malfunction
Community thread: https://community.mybb.com/thread-224905-post-1349025.html#pid1349025
Relevant code that will trigger errors:
mybb/sendthread.php
Line 215 in 4c5451a
./sendthread.php
- send thread to a friend:$from
:$mybb->input['fromemail']
from$mybb->user['email']
for logged in user$return_email
:$mybb->input['fromemail']
from$mybb->user['email']
for logged in userThe mail will be sent from [b]a user-specified email address[/b] which confronts mail SMTP service's requirement, like Zoho's requiring
from
is the same as sending account's email address.Still for Zoho, setting a different
Return Email
other than SMTP username will result in no mail delivered and MyBB frequently set Return Email asfrom:
field if it's empty.So in the above circumstances, Zoho's SMTP authentication will pass but when the full message is sent with a final ending
.
, the server will probably return a 553 code553 Relaying disallowed as xxx@yyy.zzz
, which MyBB doesn't take care of.The text was updated successfully, but these errors were encountered: