Hello
i'm sending mails, I use a mail configured via cpanel, in my django 
application but i have this mistake 

ConnectionRefusedError at / register
[WinError 10061] No connection could be made because the target computer 
expressly refused it

My settings.py files

EMAIL_BACKEND ='django.core.mail.backends.smtp.EmailBackend'
EMAIL_USE_TLS = True
EMAIL_HOST = 'mail.toto.net'
EMAIL_HOST_USER = 'i...@toto.net'
EMAIL_HOST_PASSWORD = '***********'
EMAIL_PORT = 465

My views.py files is like this :

message=str(randint(000000, 999999))

                    
emailSend = EmailMessage('CODE DE VALIDATION', message, to=[email])
emailSend.send()
Thanks

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/074e0309-2690-42af-a721-816c04e4d1d1n%40googlegroups.com.

Reply via email to