On my web application that is built using Yii 2 PHP, We send out emails using Swiftmailer
It is configured to connect to an SMTP server to send the email - to avoid problems.
The Emails are in HTML and do have a link in the body of the mail. On gmail accounts these emails go straight to the spam folder. Any advice on how to fix this problem would be great please!
My Swiftmailer is configured as follow:
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'useFileTransport'=>false,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'mail.domainhere.com',
'username' => 'address@domainhere.com',
'password' => 'PASSWORDHERE',
'port' => '465',
'encryption' => 'ssl',
],
],
When i send emails to my own gmail account i get this warning on the email:
Be careful with this message. Many people marked similar messages as phishing scams, so this might contain unsafe content
Thanks! Jason