Email sending no longer works

We upgraded from 6.4 to 6.6 and email sending stopped working.
We never had anything custom done in that area, always used ‚Local email agent‘ and worked before, works when switching back to 6.4.

Any ideas ?

The update overrides the .env. Did you add a .env.local and copied the settings?

I noticed the new MAILER_DSN and copied that setting and removed old MAILER_URL setting but still no luck. Then I replaced the new .env on my .env.local and updated APP_URL, DATABASE_URL, APP_SECRET, INSTANCE_ID and still not working.
bin/console mailer:test works
testing email from admin says success, but no email sent and forgot password from frontend not working, no errors, nothing in mail.log

Maybe you are using the Messenger do send mails but you have no Cronjob set up to be executed?

Not sure what messenger you are talking about. Didn’t find any cron in shopware documentation, nothing in the email setup documentation and we didn’t need one before for sending emails.
There is a setting in admin->settings->mailer Synchronous/Asynchronous mail dispatch, changing it doesn’t work and we kept Synchronous, just like on 6.4 where emails were sent

But if it is still on synchronous, that should not affect it. Install the FroshMailer then you can see your emails and possible errors.

Weird, running bin/console messenger:consume async sent the zillion tests I made earlier…I checked this command before, without luck, maybe I stopped it too soon.
But the mailer setting in admin is set to synchronous, like before, not sure why it needs the consume command.
Anyways, thanks a lot for the help, if I can’t make it send mails synchronously then I’ll just setup the consumer cron.

1 „Gefällt mir“

I’ll bet it’s an old Mail Template - Shopware Change the variable in 6.4 and it kill the order Mails in 6.5 and 6.6