Forums

Setting up email with django

I'm very new to web development and I'm hoping someone can help confirm something for me. I've been reading up on how to set up my django app to send emails. My domain is registered with namespace and my plan is to set up my email with them as well to keep things simple. I just want to make sure that this will work before I make a purchase.

My plan is to use send_email from django.core.mail. The email account I plan on setting up with me info@mywebsite.com. So the settings based on what I've been reading should be:

EMAIL_USE_TLS = True
EMAIL_HOST = 'smtp.mywebsite.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'info@mywebsite.com'
EMAIL_HOST_PASSWORD = my password goes here.

My question is, when setting up the email on namespace is there anything special I need to do to make it work? Also, is there anything about the settings that I've written above that is wrong? Based on what I was reading it's this simple but like I said, I'm very new to this. Any advice is greatly appreciated.

Did you try to do run the code with those settings? If so, and you encountered any issues, could you tell us what were the errors?