Re: Gmail: multiple addresses in From:n550 5.7.1 header are not accepted
Reply #1 – March 22, 2022, 08:49:17 am
The easy fix is to only set one email address in the from header. That should be the standard anyway looking at the RFC.
Re: Gmail: multiple addresses in From:n550 5.7.1 header are not accepted
Reply #2 – March 22, 2022, 12:25:31 pm
Let me try to partially rephrase: Elkarte emails are being bounced and Wordpress emails are not. Both are using PHP to send emails. How can I tell Elkarte to set only one email address in the from header? There is no such setting in Maintenance → Mail → Settings. The settings search does indeed hint at the existence of a "Reply-To and From email address [Setting] " but ?action=admin;area=maillist;sa=emailsettings just opens the main admin page. I suspect it's related to Post by Email Management. Edit: there's also $webmaster_email in Settings.php as well as Configuration → General → Webmaster email address. This points to an email address on the domain.
Re: Gmail: multiple addresses in From:n550 5.7.1 header are not accepted
Reply #3 – March 22, 2022, 04:08:30 pm
Could you post a raw .eml file of what is being sent so I can take a look ?
Re: Gmail: multiple addresses in From:n550 5.7.1 header are not accepted
Reply #4 – March 22, 2022, 04:11:20 pm
Also any chance you can try SMTP as well and see if the error repeats with that transport?
Re: Gmail: multiple addresses in From:n550 5.7.1 header are not accepted
Reply #8 – March 23, 2022, 04:06:30 pm
Same bounce error from Gmail I'm afraid. Glancing at the code there it's a complete mystery to me where that single-space indentation could be coming from.
Re: Gmail: multiple addresses in From:n550 5.7.1 header are not accepted
Reply #14 – March 23, 2022, 06:22:45 pm
I was just curious if you were running something like Xampp, or other, stack on windows, these can do some odd things. I looked at the "ancestry" and the CRLF vs LF has been that way for ~15 years, it is not something new in Elk Going back even further it looks like it was CRLF back when php4 was a thing. If I change it to CRLF the mail tests fail in our github actions testbed which is Ubuntu 20.04, so at least Ubuntu/Debian native sendmail expect only LF. So what OS are you running ? Have you specified anything different in your php.ini mail settings where it may be using SMTP instead of sendmail ?