Recently we had to move TYPO3 driven web site to the dedicated server without sendmail or SMTP options available and we’ve decided to use Sendgrid as a transport to deliver all messages generated by TYPO3.
Unfortunately, TYPO3 lacks any documentation of how to set it up.
TYPO3 uses Symfony’s Mailer to deliver email messages. This allows us to use all transports available to it. See full list here.
To let TYPO3 be able to use one of those transports, load required dependency module:
composer req symfony/sendgrid-mailer
And setup correct Data Source Name (DSN) in your LocalConfiguration.php or AdditionalConfiguration.php file:
And that’s all.
'MAIL' => [
'defaultMailFromAddress' => 'no-reply@your-domian.com',
'defaultMailFromName' => 'Your Website',
'dsn' => 'sendgrid://xxxxxxxxxxxxxx@default',
'transport' => 'dsn',
],
And that’s all. Just do not override it with the TYPO3 Install Tools.