Your Ad Here

Thursday, January 19, 2012

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

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.

On Thu, Jan 19, 2012 at 8:15 AM, Chen Xu <xuchen81@gmail.com> wrote:
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 = 'me@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

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@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

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

0 comments:

Post a Comment