databasesymfonyconfigurationmailer

Symfony 6 can't send email with mailer (without configured database)


Hello guys i just started to building web using Symfony6 - im trying to send email using mailer however it somehow require database to be configured (+ some special table created for messages...).Maybe there is some workaround so it would work without DB.. - thing is in Symfony 5 there was no problem with that.


Solution

  • If you comment the default configuration in config/packages/messenger.yaml

    #Symfony\Component\Mailer\Messenger\SendEmailMessage: async

    or set it to null your email should be sent immediately.