Hello!
I have a website hosted at https://aws.amazon.com/en/
I made the settings to use the Zoho account.
I am using zoho's email account to send authenticated email with phpmailer, but you are presenting the following message: SMTP Error: Could not authenticate.
Below is a print of the settings made in aws
Please can you help me resolve this error?
Thanks in advance!
Email sending code:
- <? php
- require_once ('mail / class.phpmailer.php'); // Include PHPMailer folder / class
- $ phpMailer = new PHPMailer ();
- $ phpMailer-> isSMTP ();
- $ phpMailer-> Host = "smtp.zoho.com";
- $ phpMailer-> SMTPAuth = true;
- $ phpMailer-> Username = "contato@web3w.com.br";
- $ phpMailer-> Password = "***";
- $ phpMailer-> SMTPSecure = "ssl";
- $ phpMailer-> Port = 465;
- $ phpMailer-> isHTML (true);
- $ phpMailer-> CharSet = "UTF-8";
- $ phpMailer-> setFrom ("contato@web3w.com.br", "Contato");
- $ phpMailer-> addAddress ("contato@web3w.com.br");
- $ phpMailer-> Subject = "subject";
- $ phpMailer-> Body = "mail-body";
- $ phpMailer-> send ();