Configure SMTP for outbound emails

Follow these steps:

  • Configure email settings by editing the /opt/bitnami/apps/django/lib/python2.7/site-packages/Django-1.7.8-py2.7.egg/django/conf/ file. Here’s an example using Gmail. Replace USERNAME and PASSWORD with your Gmail account username and password respectively.

    EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
    EMAIL_HOST = ''
    EMAIL_PORT = 587
    EMAIL_USE_TLS = True
  • Restart the Apache server for the changes to take effect.

    $ sudo /opt/bitnami/ restart apache

To configure the application to use other third-party SMTP services for outgoing email, such as SendGrid, refer to the FAQ.

NOTE: If you are using Gmail as the outbound email server and have experienced issues trying to send emails correctly, check the Gmail SMTP troubleshooting page to learn the causes of these issues and how to solve them.

Last modification January 18, 2019