i have a yii2 app working since 2019 and php 7.4. It send mails via swiftmailer and smtp.office365.com. And when an email is sent, we can find it in the sent mailbox of the address.
As i want to go to php8, i've downloaded a new yii2 advanced template and made the necessary modifications.
Now, allmost everything work, only 1 thing doesn't, we can't find the mails in the "sentmailbox".
The news Yii2 app use symfonymailer and not swiftmailer. All DNS records etc are correct. and the mails are sent, i receive it each time. But the copy in "sent" just does not exist anymore..
Does someone have any ideas on what can make this ?
Kind regards
Edit: i'm thinking, maybe it is the dns entry of the array that should be different ?
'mmtmailer' => [
'class' => \yii\symfonymailer\Mailer::class,
// SMTP server example:
'transport' => [
//'scheme' => 'smtps',
'host' => 'smtp.office365.com',
'username' => 'mail@domain.com',
'password' => 'PASSWORD*',
'port' => '587',
'encryption' => 'TLS',
'streamOptions' => [
'ssl' => [
'allow_self_signed' => false,
'verify_peer' => false,
'verify_peer_name' => false,
],
],
'dsn' => 'native://default',
],
'viewPath' => '@common/mail',
'useFileTransport' => false,
],