Merge branch '2amigos:master' into patch-1
This commit is contained in:
@ -83,11 +83,16 @@ class MailService implements ServiceInterface
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
return $this->mailer
|
||||
$result = $this->mailer
|
||||
->compose(['html' => $this->view, 'text' => "text/{$this->view}"], $this->params)
|
||||
->setFrom($this->from)
|
||||
->setTo($this->to)
|
||||
->setSubject($this->subject)
|
||||
->send();
|
||||
|
||||
if (!$result) {
|
||||
Yii::error("Email sending failed to '{$this->to}'.", 'mailer');
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user