Does anyone know how to set up the Swiftmailer signer in config? I can see how to do it in the Swiftmailer docs, but I would like to have it in Yii2 config.
…Something like this:
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@common/mail',
'class' => 'yii\swiftmailer\Mailer',
'useFileTransport' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'myhost.com',
'username' => 'myusername',
'password' => 'mypassword',
'port' => '587',
'encryption' => 'tls',
'signCertificate' => ['/path/to/dkim_private_key.pem'],
],
],