SMTP Not working In Cpanel Production server.

318 views
Skip to first unread message

Prateek Lodhi

unread,
Jun 10, 2023, 6:28:48 PM6/10/23
to Django users
I am trying to use email SMTP in my project. the SMTP is working properly in local server but it's not working on Cpanel. Any solutions please.

ome chukwuemeka

unread,
Jun 11, 2023, 3:44:00 AM6/11/23
to django...@googlegroups.com
what did you use as your email host? if you used mail.example.com, try to change it to localhost



Mailtrack Sender notified by
Mailtrack
06/11/23, 08:42:11 AM

On Sat, Jun 10, 2023 at 11:28 PM Prateek Lodhi <prateeklo...@gmail.com> wrote:
I am trying to use email SMTP in my project. the SMTP is working properly in local server but it's not working on Cpanel. Any solutions please.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/337c8135-458d-4a65-b25e-445668dd46e7n%40googlegroups.com.

Dushime Mudahera Richard

unread,
Jun 11, 2023, 4:27:31 AM6/11/23
to django...@googlegroups.com
can you provide a copy of the codes you are using ? 
i would advise also to check the path in your file 

Best Regards 
Dushime Mudahera Richard
Google Crowdsource Influencer | M L Facilitator | OLS P Lead | 
Visit me My Portfolio
| Open Science Ambassador | Sports | Mentorship | Leadership | Girl Child Empowerment |



On Sun, Jun 11, 2023 at 1:28 AM Prateek Lodhi <prateeklo...@gmail.com> wrote:
I am trying to use email SMTP in my project. the SMTP is working properly in local server but it's not working on Cpanel. Any solutions please.

--

Prateek Lodhi

unread,
Jun 11, 2023, 11:38:09 PM6/11/23
to django...@googlegroups.com
# EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'tick...@gmail.com'
EMAIL_HOST_PASSWORD = '********'
EMAIL_USE_TLS =False

 I had a conversation with go daddy. They told me to do EMAIL_HOST to the localhost. I tired. but still it's not working.
EMAIL_HOST = 'localhost'
EMAIL_PORT = 25
EMAIL_HOST_USER = 'tick...@gmail.com'
EMAIL_HOST_PASSWORD = '********'
EMAIL_USE_TLS =False

ivan harold

unread,
Aug 9, 2023, 10:34:21 AM8/9/23
to Django users
You can check this link right here it has some good documentation.


Hope it helps.
Reply all
Reply to author
Forward
0 new messages