I have created an email id on my cpanel, I want to use it in django.
As for gmail we write,
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_USE_TLS = True
EMAIL_USE_SSL = False
EMAIL_PORT = 587
EMAIL_HOST_USER = 'email@gmail.com'
EMAIL_HOST_PASSWORD = 'password'
What should we write for the id that has been created using cpanel.
I have no idea regarding this as I am a begineer.
For me I have a cpanel email created on NameCheap, during development I successfully configured the email. I was able to send the email from the configured one. But the Email was not using SSL or TLS because setting up the secure one was raising an error.
#MY EMAIL SETTING
EMAIL_BACKEND ='django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'mail.your_main_domain' #Hosted on namecheap Ex: mail.pure.com
EMAIL_USE_TLS = False
EMAIL_PORT = 26 #This will be different based on your Host, for Namecheap I use this`
EMAIL_HOST_USER = 'your full email address' # Ex: info@pure.com
EMAIL_HOST_PASSWORD = 'password' # for the email you created through cPanel. The password for that
If you are using Django All auth remember to set to use same email to send password reset links
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
Thanks