This extension provides a SES mail solution for Yii framework 2.0.
For license information check the LICENSE-file.
The preferred way to install this extension is through composer.
Either run
or add
"talview/sesmailer": "~1.0"
to composer.json.
To use this extension, simply add the following code in your application configuration:
return [
//....
'components' => [
'mailer' => [
'class' => 'talview\sesmailer\Mailer',
],
],
];
You can then send an email as follows:
Yii::$app->mailer->compose('contact/html')
->setFrom('from@domain.com')
->setTo($form->email)
->setSubject($form->subject)
->send();