Could someone please give some suggestions about how to set up email sending settings on production.

39 views
Skip to first unread message

Chen Xu

unread,
Jan 18, 2012, 9:45:09 PM1/18/12
to django...@googlegroups.com
Hi, everyone:

Could someone please give some suggestions about how to set up email sending settings on production.

I know on local, you can do  either:
python -m smtpd -n -c DebuggingServer localhost:1025

EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

EMAIL_HOST = 'localhost'
EMAIL_PORT = 1025

and then email will be printed on the terminal

or 
EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'm...@gmail.com'
EMAIL_HOST_PASSWORD = 'pw'

but I dont want to use gmail account to send emails on production.

Therefore, could someone please help?


Thanks very much
Best regards


--
⚡ Chen Xu

Daniel Roseman

unread,
Jan 19, 2012, 4:07:00 AM1/19/12
to django...@googlegroups.com
I don't understand the question. You use the settings of whatever your mail server is. If you don't use gmail, presumably you have a different mail server, so use that.
--
DR.

Timothy Makobu

unread,
Jan 19, 2012, 5:50:12 AM1/19/12
to django...@googlegroups.com
Hi,

There's Amazon SES http://aws.amazon.com/ses/


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/v3lYi8DTwnIJ.

To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
sent from my two tin cans via hangerwire

Lie Ryan

unread,
Jan 19, 2012, 7:57:28 AM1/19/12
to django...@googlegroups.com
On 01/19/2012 01:45 PM, Chen Xu wrote:
> but I dont want to use gmail account to send emails on production.

you're leaving one thing out from your question, what do you want to use
instead?

Check your web host, many webhosts provides smtp service.

Nikhil Verma

unread,
Jan 19, 2012, 8:07:12 AM1/19/12
to django...@googlegroups.com
Well if i understand you correctly for production you need one email server may be google apps or Microsoft any one  can help you.
Also if you wana check at your local there is POSTFIX just google around you will get many articles about configuring it.
In this case you don't need to write your email address and password.

So in your settings.py or settings_local you need something like this.


# Email server config
EMAIL_HOST = 'localhost'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_PORT = 25
EMAIL_SUBJECT_PREFIX = '[Django] '
SERVER_EMAIL = 'django@localhost'

May be my answer can help you.



--
⚡ Chen Xu

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.



--
Regards
Nikhil Verma
+91-958-273-3156

Markus Gattol

unread,
Jan 19, 2012, 10:34:38 AM1/19/12
to django...@googlegroups.com
you either use your own MTA (e.g. postfix) or you use a third party such as Amazon SES for which there is a Django application: https://github.com/hmarr/django-ses
Reply all
Reply to author
Forward
0 new messages