Answer the question
In order to leave comments, you need to log in
How to send email in yii2 with read receipt via gmail?
I use Yii to send mail via gmail:
Yii::$app->set('mailer', [
'class' => 'yii\swiftmailer\Mailer',
'transport' => [
'class' => 'Swift_SmtpTransport',
// Values from db
'class' => 'Swift_SmtpTransport',
'host' => 'smtp.gmail.com',
'username' => $username,
'password' => $password,
'port' => '587',
'encryption' => 'tls',
],
]);
Answer the question
In order to leave comments, you need to log in
In Gmail, you can send an email with a read receipt.
<img src="/api/markAsRead?accessToken=xxx&user=yyy&emailId=zzz">
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question