How to use only Nullmailer to send emails with Symfony

  email, php, symfony

I have a Ubuntu server with nullmailer installed on it to relay send emails to an actual SMTP server. Everything is working as intended when I execute the following command at the CLI.

echo "Test message" | mail -r "[email protected]" -s "This is just a test with nullmailer" "[email protected]"

My question is: How can I use the mail with Symfony Mailer? I only see adapter for SendGrid and other providers. Does anyone have any idea?


Source: Symfony Questions