|
@@ -138,6 +138,13 @@ class MailCaptcha extends BaseService
|
|
|
try {
|
|
|
//Server settings
|
|
|
$mail->SMTPDebug = SMTP::DEBUG_OFF; //Enable verbose debug output
|
|
|
+ $mail->SMTPOptions = array(
|
|
|
+ 'ssl' => array(
|
|
|
+ 'verify_peer' => false,
|
|
|
+ 'verify_peer_name' => false,
|
|
|
+ 'allow_self_signed' => true
|
|
|
+ )
|
|
|
+ );
|
|
|
$mail->isSMTP(); //Send using SMTP //SMTP password
|
|
|
$mail->Host = config('smtp.host'); //Set the SMTP server to send through
|
|
|
$mail->SMTPAuth = true; //Enable SMTP authentication
|