• 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 = smt​​p.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?

    • This topic was modified 7 years, 6 months ago by cesgroup.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘SMTP Error: Could not authenticate’ is closed to new replies.