Django send_mail
Thursday, 24th September, 2009 // 8:43 p.m.Django Here are the settings as I've listed them in my settings.py file:
#!/usr/bin/python EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_USER = 'USER@YOUR_DOMAIN.com' EMAIL_HOST_PASSWORD = 'PASSWORD' EMAIL_PORT = 587 EMAIL_USE_TLS = True
I'm also setting SERVER_EMAIL and DEFAULT_FROM_EMAIL to the same address as EMAIL_HOST_USER but for clarity of the above, chose not to show those settings.
It's great that Django comes pre-baked to support any mail server that requires TLS connections like Gmail.
Comment Form
Looks like there aren't any comments yet..