Kentico 8.1- Emails not sending with Gmail SMTP settings

Rahul Raghuvanshi asked on September 25, 2014 11:42

Hello,

I am struggling with sending emails with Gmail SMTP on a localhost (having windows 8 OS).

This is what I done, "Settings > System "No reply address, Error notification email, Send email notification email: All set to my Gmail email in all 3 fields.

"Settings > System > E-mails" Default SMTP server settings: SMTP server: smtp.gmail.com:465 SMTP user name: myemail@gmail.com . SMTP Server password: My Gmail email password. Use SSL: True

Now gone to Email Queue > Send Email, and do a Test-sending of an email. BUT, it never leaves the E-mail queue. Some time got status keeps being "Sending", and some time got status waiting, but no email is send.

After very long time of sending, status converted into "failed" with showing following error:

Error message: Syntax error, command unrecognized. The server response was:

Please help me to fix this and let me know where I did wrong.

Thanks in advance.

Correct Answer

Brenden Kehren answered on September 25, 2014 17:39

I thought Google SMTP was only enabled for "business" accounts and not personal? Do you have another option for SMTP? I guess I've always used my regular hosting SMTP setup. As the previous answer suggests, if you don't know what 2 factor authentication is with Google, its probably not enabled.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Brenden Kehren answered on September 25, 2014 13:28

Two things: 1. Try using a different TO email address 2. Does your gmail account have 2 factor authentication enabled? If so, this won't work with that account.

0 votesVote for this answer Mark as a Correct answer

Rahul Raghuvanshi answered on September 25, 2014 14:03

Hello Brenden,

First of all thanks for your quick reply.

I tried with different "To" Gmail email addresses also, but getting same result. :(

Can you please elaborate, what is meaning of "2 factor authentication enable" here?

0 votesVote for this answer Mark as a Correct answer

Kwik Trip Developers answered on September 25, 2014 17:14

Google 2 factor authentication would be on your google account itself, nothing to do with Kentico. If you don't know what it is, it's most likely not enabled.

0 votesVote for this answer Mark as a Correct answer

Rahul Raghuvanshi answered on September 29, 2014 06:18

Thanks for your guidance Brenden,

Yes I think Google SMTP doesn't work with personal account, I have configured with different live SMTP server and its worked for me, :)

Thanks for your support.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.