SMTP Error: Could not authenticate
-
I test email and receive the following message:
“SMTP NOTICE: EOF caught while checking if connectedSMTP Error: Could not authenticate.SMTP Error: Could not authenticate.”SMTP setting:
SMTP Host = smtp.gmail.com
Encryption type = ssl
SMTP Port = 465
SMTP authentication = Yes
SMTP Username = [email protected]
SMTP Password = ********I add the code in function.php:
add_action(‘phpmailer_init’, ‘mail_smtp’);
function mail_smtp( $phpmailer ) {
$phpmailer->IsSMTP();
$phpmailer->SMTPAuth = true;
$phpmailer->Port = 465;
$phpmailer->SMTPSecure =”ssl”;
$phpmailer->Host = “smtp.gmail.com”;
$phpmailer->Username = “[email protected]”;
$phpmailer->Password =”********”;
}How to solved it?
The topic ‘SMTP Error: Could not authenticate’ is closed to new replies.