OiO.lk Blog PHP Cannot send email with `symfony/mailer`, but native function `mail` works
PHP

Cannot send email with `symfony/mailer`, but native function `mail` works


I have a server configured with DKIM and the native mail function seems to respect that and sends out emails without a problem.

However, I need to use symfony/mailer (wrapped by yiisoft/yii2-symfonymailer) and I cannot get it to work. If I use the default SmtpTransport, I get the following error:

550-Verification failed for <XXXX>
550-Unrouteable address
550 Sender verify failed

If I use the built-in transport native://default it fails silently (as expected).

Any idea what I can do here? How can I get to the bottom of this? I’m about to write my own Transport class which simply uses mail, but that’s obviously kind of ridiculous…

Thank you!



You need to sign in to view this answers

Exit mobile version