Sending emails in Symfony via a docker container mail server Sending emails in Symfony via a docker container mail server docker docker

Sending emails in Symfony via a docker container mail server


Ok I understood what I've done wrong. My docker container works fine with my symfony application. It is just that in my command, I performed an exit() before the end, so the eventListener that was supposed to catch the send mail event was never triggered.

When I removed my exit() (which was there for test purposes) everything worked fine.