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