|
@@ -64,12 +64,12 @@ class Captcha extends Controller
|
|
|
$data = $this->postForm();
|
|
|
$email = $data['mobile'] ?? '';
|
|
|
if (empty($email)) {
|
|
|
- return $this->renderError('Failed to send code. Please try again later');
|
|
|
+ return $this->renderError('Invalid email address.');
|
|
|
}
|
|
|
|
|
|
$smtp = new UMailer(config('smtp.host'), config('smtp.port'), true,
|
|
|
config('smtp.username'), config('smtp.password'));
|
|
|
- $smtp->debug = false; //是否显示发送的调试信息
|
|
|
+ $smtp->debug = true; //是否显示发送的调试信息
|
|
|
$flag = $smtp->sendmail($email, config('smtp.username'));
|
|
|
if ($flag) {
|
|
|
return $this->renderSuccess('Sent Successful!Please check your new mails.');
|