voku/PHPMailer-BMH

Cannot create imap connection

Opened this issue · 1 comments

hello, i have the following problem, i can't connect with smpt from google.
I am using the following configuration:

$bmh->mailhost = 'smtp.gmail.com';
$bmh->mailboxUserName = 'username'; without @gmail.com
$bmh->mailboxPassword = '*****';
$bmh->port = 465;
$bmh->service = 'imap';
$bmh->serviceOption = 'ssl/novalidate-cert';
$bmh->boxname = 'INBOX';

I'm using index.php

and I get the following error

Cannot create imap connection to smtp.gmail.com
Error MSG: [CLOSED] IMAP connection broken (server response)

if you can help me!! Thank you!!