Skip to content

Commit

Permalink
subject fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noumo committed May 19, 2015
1 parent 5b26041 commit 0edf78a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helpers/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public static function send($toEmail, $subject, $template, $data = [], $options
if(!filter_var($toEmail, FILTER_VALIDATE_EMAIL) || !$subject || !$template){
return false;
}
$data['subject'] = $subject;

$message = Yii::$app->mailer->compose($template, $data)
->setTo(Setting::get('admin_email'))
Expand Down

0 comments on commit 0edf78a

Please sign in to comment.