Re: Gmail Django

51 views
Skip to first unread message
Message has been deleted

m1chael

unread,
Feb 19, 2016, 4:43:31 PM2/19/16
to django...@googlegroups.com
You may have to dig deep in Google's settings and turn off a lot of security, don't give up, this is an annoying one.

On Fri, Feb 19, 2016 at 3:17 PM, <setivo...@gmail.com> wrote:
my settings

EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = 'webmaster@vaility'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_FILE_PATH = None
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_PASSWORD = 'lv210493'
EMAIL_HOST_USER = 'setivo...@gmail.com'
EMAIL_PORT = 587
EMAIL_SUBJECT_PREFIX = '[Django] '
EMAIL_TIMEOUT = None
EMAIL_USE_TLS = True
SERVER_EMAIL = 'root@vaility'  # email for errors

Every time I had next error

SMTPAuthenticationError: (534, b'5.7.14 <https://accounts.google.com/ContinueSignIn?sarp=1&scc=1&plt=AKgnsbsy1\n5.7.14 Hm68kFAtFDZroMBYjdIl_EN2We7HAeUt2puFzfziG5SUr_1ZyN9UgsCfV_M_RKiMRBEYw9\n5.7.14 F4k9yCuW8gTxTgcL5lV4ofXgDXumhhKkh7yc-BvkyqL1NBPZv_WXNPD7qQQUhUO8-KikpH\n5.7.14 ct0vd7ZvgpfIF48HMJKlSiICSCHsmwaqU9Atwc5dx4RlcMJ7Bcn63ePgmwruSeBHh4rKOB\n5.7.14 nGaIDTGZyrou7ao5k4lm5t6wxosA> Please log in via your web browser and\n5.7.14 then try again.\n5.7.14  Learn more at\n5.7.14  https://support.google.com/mail/answer/78754 eb3sm1684842lbc.31 - gsmtp')

I again sigin in my account, but not result


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d2feb1b0-56c0-41ee-9a61-75acf91f5b90%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Daniel Wilcox

unread,
Feb 19, 2016, 5:07:58 PM2/19/16
to django...@googlegroups.com
You should generate a certificate to use TLS (even something self signed, or try Let's Encrypt and get a free cert from there).  Other than that we have the same settings and I've been sending mail successfully with almost identical settings the past day or so.

I presume you are using an app-specific password.  Another difference I see is that I removed the default from setting since it doesn't match the host user (and I don't expect that google would deliver it).

Best of luck!

Luis Zárate

unread,
Feb 19, 2016, 5:31:29 PM2/19/16
to django...@googlegroups.com
Those are your real credentials, hurry up and change the password, you must never post your real credentials in public mail list.

M1chael is right you need to change the gmail settings for allow login with insecure applications.


For more options, visit https://groups.google.com/d/optout.



--
"La utopía sirve para caminar" Fernando Birri


Reply all
Reply to author
Forward
0 new messages