Django Settings When Using Gmail As Mail Server

Remember my post entitled “CodeIgniter Email Preferences When Using Gmail As Mail Server“? Here is the Django version.

EMAIL_HOST = 'smtp.gmail.com'
EMAIL_HOST_PASSWORD = 'password'
EMAIL_HOST_USER = 'username@gmail.com'
EMAIL_PORT = '587'
EMAIL_SUBJECT_PREFIX = '' # The default is [Django] so you may want to replace it.
EMAIL_USE_TLS = True

Again, make sure to replace username with your real username and password with your real password.

One thought on “Django Settings When Using Gmail As Mail Server”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>