From 9d691971996d8843a48b8b1befd46cff8f16a782 Mon Sep 17 00:00:00 2001 From: agusmakmun <summon.agus@gmail.com> Date: Tue, 19 Apr 2016 02:32:23 +0700 Subject: [PATCH] Add post Email BackEnd with SMTP Gmail --- ...016-04-19-email-backend-with-smtp-gmail.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 _posts/2016-04-19-email-backend-with-smtp-gmail.md diff --git a/_posts/2016-04-19-email-backend-with-smtp-gmail.md b/_posts/2016-04-19-email-backend-with-smtp-gmail.md new file mode 100644 index 0000000..128131c --- /dev/null +++ b/_posts/2016-04-19-email-backend-with-smtp-gmail.md @@ -0,0 +1,23 @@ +--- +layout: post +title: "Email BackEnd with SMTP Gmail" +date: 2016-04-19 02:28:15 +categories: django +--- + +Add this configurations in your `settings.py` + +This configurations is if you work with `smtp.gmail.com`, other smtp is similiar with configurations. + +* Unlock Captha: https://accounts.google.com/DisplayUnlockCaptcha +* Change to active: https://www.google.com/settings/security/lesssecureapps + +``` +EMAIL_HOST = 'smtp.gmail.com' +EMAIL_PORT = 587 +EMAIL_HOST_USER = 'your_gmail@gmail.com' +EMAIL_HOST_PASSWORD = 'your_password' +EMAIL_USE_TLS = True +DEFAULT_FROM_EMAIL = EMAIL_HOST_USER +EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +``` \ No newline at end of file -- GitLab