|
@@ -69,7 +69,7 @@ class MailCaptcha extends BaseService
|
|
|
$mail = new PHPMailer(true);
|
|
|
try {
|
|
|
//Server settings
|
|
|
- $mail->SMTPDebug = SMTP::DEBUG_SERVER;//DEBUG_OFF //Enable verbose debug output
|
|
|
+ $mail->SMTPDebug = SMTP::DEBUG_OFF;//DEBUG_OFF,DEBUG_SERVER //Enable verbose debug output
|
|
|
$mail->SMTPOptions = array(
|
|
|
'ssl' => array(
|
|
|
'verify_peer' => false,
|
|
@@ -101,7 +101,7 @@ class MailCaptcha extends BaseService
|
|
|
//$mail->isHTML(true); //Set email format to HTML
|
|
|
$mail->Subject = 'Captcha';
|
|
|
$mail->Body = 'Your captcha is ' . $smsCaptcha['code'] . '.Please use it in 15 minutes';
|
|
|
- $mail->AltBody = 'This is the Your captcha for vapes';
|
|
|
+ $mail->AltBody = 'This is the Your captcha for Free Shipping Vapes';
|
|
|
|
|
|
$mail->send();
|
|
|
//echo 'Message has been sent';
|
|
@@ -130,7 +130,7 @@ class MailCaptcha extends BaseService
|
|
|
$mail = new PHPMailer(true);
|
|
|
try {
|
|
|
//Server settings
|
|
|
- $mail->SMTPDebug = SMTP::DEBUG_SERVER; //Enable verbose debug output
|
|
|
+ $mail->SMTPDebug = SMTP::DEBUG_OFF; //Enable verbose debug output
|
|
|
$mail->isSMTP(); //Send using SMTP
|
|
|
$mail->Host = 'smtp.163.com'; //Set the SMTP server to send through
|
|
|
$mail->SMTPAuth = true; //Enable SMTP authentication
|
|
@@ -154,9 +154,9 @@ class MailCaptcha extends BaseService
|
|
|
}
|
|
|
|
|
|
$mail->send();
|
|
|
- echo 'Message has been sent';
|
|
|
+ //echo 'Message has been sent';
|
|
|
} catch (Exception $e) {
|
|
|
- echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
|
|
|
+ //echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
|
|
|
Log::error(__CLASS__ . ':' . __METHOD__, ['errMsg' => $e->getMessage(), 'mailError' => $mail->ErrorInfo]);
|
|
|
return false;
|
|
|
}
|