Skip to content

Commit

Permalink
send mail
Browse files Browse the repository at this point in the history
  • Loading branch information
orvice committed Jan 17, 2016
1 parent e08a733 commit 489cf13
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/Services/Password.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ public static function sendResetEmail($email){
if(!$pwdRst->save()){
return false;
}

$subject = Config::get('appName')."重置密码";
$text = '请访问此链接申请重置密码'.Config::get('baseUrl')."/password/token/";
try{
Mail::send($email,$subject,$text);
}catch (Exception $e){
return false;
}
return true;
}

Expand Down

0 comments on commit 489cf13

Please sign in to comment.