sending mail with gmail error: SMTP server did not accept password
Notice: This thread is very old.
- thcom
- Backer | 95
hi, i try to send email with smtpMailer with gmail
my config:
smtp.host = "smtp.gmail.com"
smtp.username = "MyAccountOnGMail@gmail.com"
smtp.password = "YesIHaveRihtPassword"
smtp.secure = "ssl"
code:
dump($mail) shows this
Nette\Mail\Mail(8) {
"mailer" private => Nette\Mail\SmtpMailer(7) {
"connection" private => NULL
"host" private => "smtp.gmail.com" (14)
"port" private => 465
"username" private => "CENSORED@gmail.com" (26)
"password" private => "CENSORED" (8)
"secure" private => "ssl" (3)
"timeout" private => 20
}
"attachments" private => array(0)
"inlines" private => array(0)
"html" private => NULL
"basePath" private => NULL
"headers" private => array(6) {
"MIME-Version" => "1.0" (3)
"X-Mailer" => "Nette Framework" (15)
"Date" => "Tue, 12 May 2015 07:55:27 +0200" (31)
"From" => array(1) {
"CENSORED" (16)
}
"To" => array(3) {
"CENSORED" => NULL
}
"Subject" => "obnova hesla" (12)
}
"parts" private => array(0)
"body" private => "CENSORED" (271)
}
nette version 2.0
can you please help me, what is wrong
i send max 10 – 30 mails per day, so i believe that is no problem with this limit
thank you
- iguana007
- Member | 970
But this will probably not work, if you are using 2-step verification – you should find out easily here: https://www.google.com/…sssecureapps