Free users are restricted to HTTP/HTTPS only, to a whitelist of sites. Because most email services work over SMTP, which is not HTTP or HTTPS, that means you cannot normally use SMTP on Free accounts.
If you want to send email, you have two options:
Use an HTTP/HTTPS-based email service (Services like Mailgun or sendgrid
allow you to send email using HTTP(S) requests, and their API endpoint
are on our whitelist. This is the most reliable option, and works well
so long as your code isn't limited to using SMTP.)
Use Gmail's SMTP servers
If i use the Gmail's SMTP server then i get the Internal Server Error (500) raise SMTPAuthenticationError !
The email and password are correctly filled in and I had enabled access to less secure apps on my gmail account !
When i use the Gmail server :
Traceback(mostrecentcalllast):File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/core/handlers/exception.py",line47,ininnerresponse=get_response(request)File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/core/handlers/base.py",line181,in_get_responseresponse=wrapped_callback(request,*callback_args,**callback_kwargs)File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/views/generic/base.py",line70,inviewreturnself.dispatch(request,*args,**kwargs)File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/utils/decorators.py",line43,in_wrapperreturnbound_method(*args,**kwargs)File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/utils/decorators.py",line130,in_wrapped_viewresponse=view_func(request,*args,**kwargs)File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/contrib/auth/views.py",line222,indispatchreturnsuper().dispatch(*args,**kwargs)File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/views/generic/base.py",line98,indispatchreturnhandler(request,*args,**kwargs)File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/views/generic/edit.py",line142,inpostreturnself.form_valid(form)File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/contrib/auth/views.py",line235,inform_validform.save(**opts)File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/contrib/auth/forms.py",line323,insaveself.send_mail(File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/contrib/auth/forms.py",line273,insend_mailemail_message.send()File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/core/mail/message.py",line284,insendreturnself.get_connection(fail_silently).send_messages([self])File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/core/mail/backends/smtp.py",line102,insend_messagesnew_conn_created=self.open()File"/home/ulefr01/.virtualenvs/env_adressen/lib/python3.8/site-packages/django/core/mail/backends/smtp.py",line69,inopenself.connection.login(self.username,self.password)File"/usr/lib/python3.8/smtplib.py",line734,inloginraiselast_exceptionFile"/usr/lib/python3.8/smtplib.py",line723,inlogin(code,resp)=self.auth(File"/usr/lib/python3.8/smtplib.py",line646,inauthraiseSMTPAuthenticationError(code,resp)smtplib.SMTPAuthenticationError:(535,b'5.7.8 Username and Password not accepted. Learn more at\n5.7.8 https://support.google.com/mail/?p=BadCredentials 15sm14978397qko.119 - gsmtp')2021-02-1013:30:36,463:InternalServerError:/accounts/password_reset/
[formatted by admin]
Sorry, we have had to rate-limit your feedback sending. Please try again in a few moments...
Thanks for the feedback! Our tireless devs will get back to you soon.