Message could not be sent.Mailer Error: SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting
i solve it by adding this line of code:
$mail->SMTPOptions = array(
'ssl' => array(
'verify_peer' => false,
'verify_peer_name' => false,
'allow_self_signed' => true
)
);
im using ssl 465..
and its really important to do this on your gmail account.
basically turned it on.
"Access for less secure apps has been turned on"
Also in PHP:
- file_get_contents(): SSL operation failed with code 1. jpeg
- create a new folder php
- create a blank page wordpress
- Hash::extract
- date formats in php
- css adding corner
- composer remove phpmailer
- check lenght in php
- artisan db:seed all
- cheak type in php
- does contains string character php
- date format in day name of month and year in php
- data seeding in laravel
- date format in ph
- exception handling php databse
- default port for phpmyadmin
- eloquent seeds down
- cache laravel
- find base64 inside of string php
- Type error: Argument 1 passed to Illuminate\Database\Grammar::parameterize()
- asia time zone in php
- check aall routes laravel
- echo all error
- display product page title in field cf7