芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/Services/Mail/ForgotPasswordMailService.php
mailResponse = [ 'status' => true, 'message' => __('We have sent you a reset code. Please check your email.') ]; } /** * Send forgot password code to user email * @param object $user * @return array $response */ public function send($user) { try { $response = $this->getEmailTemplate('password-reset'); if (!$response['status']) { return $response; } $data = [ '{user}' => $user->full_name, '{password_reset_code}' => $user->code, '{soft_name}' => settings('name'), ]; $message = str_replace(array_keys($data), $data, $response['template']->body); $this->email->sendEmail($user->email, $response['template']->subject, $message); } catch (Exception $e) { $this->mailResponse = ['status' => false, 'message' => $e->getMessage()]; } return $this->mailResponse; } }