This component provides SMTP transport for http://createsend.com service. Use it together with Swift_Mailer.
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require --prefer-dist gurucomkz/campaignmonitor-smtp-transport "dev-master"
or add
"gurucomkz/campaignmonitor-smtp-transport": "dev-master"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code:
'components' => [
'mailer' => [
'class' => '\yii\swiftmailer\MailerMailer',
'transport' => [
'class' => '\gurucomkz\campaignmonitor\SmtpTransport',
'mailgunDomain' => '<Domain Name>',
'privateApiKey' => '<Private API Key>',
],
],
\Yii::$app->mailer
->compose()
->setFrom('[email protected]')
->setTo('[email protected]')
->setSubject('Message to Johny')
->setTextBody('Hello, Johny! Take a look at our party pics :)')
->attach('/image-1.jpeg')
->attach('/image-2.jpeg')
->send();
The BSD License (BSD). Please see License File for more information.
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem