I have the following error when trying to signup new user but if i change the following line : EMAIL_BACKEND = ‘django.core.mail.backends.smtp.EmailBackend’
to : EMAIL_BACKEND = ‘django.core.mail.backends.console.EmailBackend’
it’s running correctly and sending me the urls in the console
the error :
ConnectionRefusedError at /accounts/signup/
[WinError 10061] No connection could be made because the target machine actively refused it
[WinError 10061] No connection could be made because the target machine actively refused it
Exception Location:
C:\Users\20155\AppData\Local\Programs\Python\Python311\Lib\socket.py, line 836, in create_connection
Raised during:
allauth.account.views.SignupView
Keep in your mind it gives me an error but it still working if i go to the admin panel the user will be shown but if i tried to login it will refuse it
what are your other EMAIL_ settings in your settings file? That connection refused error is frequently caused by not being able to connect to the smtp server.
The other issue:
Might be caused by the user object not being created correctly. You’ll want to check the user object in the admin in more detail to ensure that it’s not just shown, but that all the data is correct.
@JustFox - Are you also using sendgrid, or are you using a different email provider? If you’re using a different service for sending emails, I suggest you open up a new topic.
Check your Windows firewall settings to ensure that your Django application can create an outbound connection on port 587. Also, where is this server being hosted? Are you running it locally? Or is this hosted elsewhere?
What I would suggest is that you start with a small self-contained python script to send emails, and run it to try and send an email. It’s going to be easier to test and debug than running everything through Django. Once you’ve got that working, then it becomes easy to configure Django appropriately.
(550, b’The from address does not match a verified Sender Identity. Mail cannot be sent until this error is resolved. Visit Sender Identity | Twilio to see the Sender Identity requirements’)
(550, b’The from address does not match a verified Sender Identity. Mail cannot be sent until this error is resolved. Visit Sender Identity | Twilio to see the Sender Identity requirements’)