Skip to content

Commit

Permalink
Fix smtp setup for sending verification emails
Browse files Browse the repository at this point in the history
  • Loading branch information
Ananya Maiti authored and Ananya Maiti committed Apr 26, 2023
1 parent 4b238c6 commit 6721bf2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@

# E-Mail Settings
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_HOST = "smtp.gmail.com"
EMAIL_HOST_USER = DEFAULT_FROM_EMAIL = (os.environ.get("EMAIL_HOST_USER", "enter gmail id"),)
EMAIL_HOST = "smtp.sendgrid.net"
EMAIL_HOST_USER = os.environ.get("EMAIL_HOST_USER", "apikey")
# turn on 2-step verification in your gmail account and add App password
EMAIL_HOST_PASSWORD = (os.environ.get("EMAIL_HOST_PASSWORD", "enter App password"),)
EMAIL_HOST_PASSWORD = os.environ.get("EMAIL_HOST_PASSWORD", "")
EMAIL_PORT = 587
EMAIL_USE_TLS = True
# DEFAULT_FROM_EMAIL = SITE_VARIABLES["site_name"] + " <noreply@pssi.org.in>"
DEFAULT_FROM_EMAIL = "pyconindia2023@gmail.com"

BOOTSTRAP3 = {
"required_css_class": "required",
Expand Down

0 comments on commit 6721bf2

Please sign in to comment.