Bug Report
get 'Reject due to policy restrictions' from mail servers
The composer.json file does not contain the version of laminas-mail. (not good)
But the fault is also inside the github master file.
Summary
We send out many e-mails to customers and 30% come back as undeliverable.
We use ESPOCRM which uses laminas-mail.
Current behavior
The current from header looks like
From: =?UTF-8?Q?abc@xy.z?= <abc@xy.z>
How to reproduce
Send an e-mail to web.de for example, with a $name and $email
Expected behavior
To be accepted by the mail servers it should look like
From: "=?UTF-8?Q?abc@xy.z?=" <abc@xy.z>
We solved the issue by changing line 215 of src/Header/AbstractAddressList.php from
$emails[] = sprintf('%s <%s>', $name, $email);
To
$emails[] = sprintf('"%s" <%s>', $name, $email);
Best regards
Bug Report
get 'Reject due to policy restrictions' from mail servers
The composer.json file does not contain the version of laminas-mail. (not good)
But the fault is also inside the github master file.
Summary
We send out many e-mails to customers and 30% come back as undeliverable.
We use ESPOCRM which uses laminas-mail.
Current behavior
The current from header looks like
From: =?UTF-8?Q?abc@xy.z?= <abc@xy.z>How to reproduce
Send an e-mail to web.de for example, with a $name and $email
Expected behavior
To be accepted by the mail servers it should look like
From: "=?UTF-8?Q?abc@xy.z?=" <abc@xy.z>We solved the issue by changing line 215 of src/Header/AbstractAddressList.php from
$emails[] = sprintf('%s <%s>', $name, $email);To
$emails[] = sprintf('"%s" <%s>', $name, $email);Best regards