-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
3.3.9
-
None
-
PHP 7.4; Mysql:10.3.37-MariaDB-log-cll-lve, Chrome 104.0.5112.102
My site can send emails when registering, but can not receive emails from the "contact us" form.
I spend a lot of time checking every setting in the ACP, but no luck.
So I decided to check the source code. I found functions_messenger.php is where the email sends and function msg_email() is the place I should check.
After var_dump some variables, I found I can't understand the "to" variable, it should be the email address that "contact us" email send to.
This is what happens, on line 543, I var_dump($this->addresses['to']), I got:
array(1) { [0]=> array(2) |
{ ["email"]=> string(20) "contact_us@mysite.com" ["name"]=> string(13) "Administrator" } |
}
|
So we got the correct email address contact_us@mysite.com.
But on line 632, I var_dump($mail_to), I got:
string(51) "=?US-ASCII?Q?Administrator?= " |
That's where I can't understand, how could it send an email to the address "=?US-ASCII?Q?Administrator?= ", my PhpBB version is 3.3.9.
And this is another person who has errors too:
Post by Mannix_ » Sun Jan 08, 2023 10:56 pm
There is something wrong i just tested in on my board (3.3.9) and a test board (3.3.8) and the contact us e-mail was delivered on 3.3.8 but 3.3.9 wasn't
EDIT. on 3.3.8 it works when you are logged (I unchecked the send a copy checkbox) in otherwise mail doesn't come.
EDIT 2 Weirdly if I used different email it started working on 3.3.9 but only when logged in
EDIT 3 Scratch the 2nd edit it only works when email in acp email settings matches the one on your admin/founder account.