run in terminal following code
php composer.phar require --prefer-dist nickcv/yii2-mandrill "*"
code to be inserted in web .php
'mailer' => [
'class' => 'nickcv\mandrill\Mailer',
'apikey' => 'YourApiKey',
],
code to be inserted inparams.php
return [
'adminEmail' => 'admin@example.com',
];
code to be inserted in controller
\Yii::$app->mailer
->compose('mailViewName', ['model' => $model])
->setTo('email@email.com')
->send();
hope it works.have a nice day
regards
ajith