Hi,
The Canvas documentation fie says:
Using Gmail SMTP
Use the following SMTP code for sending Emails through your Gmail Account:
$mail->isSMTP();
$mail->SMTPDebug = 0;
$mail->Host = ‘smtp.gmail.com’;
$mail->Port = 587;
$mail->SMTPSecure = ‘tls’;
$mail->SMTPAuth = true;
$mail->Username = “username@gmail.com”;
$mail->Password = “password”;
Note: You will need to Turn On Less Secure App Access in your Google Account to be able to use Gmail SMTP. Go to your Google Account > Security > Less Seure App Access > Turn On
When I try to set up this on Gmail I received this message:
"Some apps and devices use less secure sign-in technology, which makes your account vulnerable. You can turn off access for these apps, which we recommend, or turn it on if you want to use them despite the risks. Google will automatically turn this setting OFF if it’s not being used.".
There is another way to configure the Gmail SMTP without leaving my account vulnerable?
Regards,
Luiz
