Please verify that this bug has NOT been raised before.
Describe the bug*
I try to send sign in link via "send me email" menu on the sign in page. I have added email setting as below in .env file
INVENTREE_EMAIL_BACKEND='django.core.mail.backends.smtp.EmailBackend'
INVENTREE_EMAIL_HOST='smtp.gmail.com'
INVENTREE_EMAIL_PORT=587
INVENTREE_EMAIL_USERNAME='my_gmail_address'
INVENTREE_EMAIL_PASSWORD='my_app_password'
INVENTREE_EMAIL_USE_TLS=True
INVENTREE_EMAIL_SENDER='my_gmail_address'
I have tried to use that config using python script and it send me email successfully. But the Inventree produce error report as below
Steps to Reproduce
- add email configuration
- sign up with email provided
- go to sign up menu, and click "send me link" button
- write your email address
- click "Send Email" button
Expected behaviour
Send email successfully
Deployment Method
Version Information
Test on 0.16.9 and 0.17.2
Please verify if you can reproduce this bug on the demo site.
Relevant log output
Traceback (most recent call last):
File "/root/.local/lib/python3.11/site-packages/rest_framework/views.py", line 506, in dispatch
response = handler(request, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/inventree/src/backend/InvenTree/InvenTree/magic_login.py", line 51, in post
self.email_submitted(email=serializer.data['email'])
File "/home/inventree/src/backend/InvenTree/InvenTree/magic_login.py", line 61, in email_submitted
send_simple_login_email(user, link)
File "/home/inventree/src/backend/InvenTree/InvenTree/magic_login.py", line 27, in send_simple_login_email
send_mail(
File "/root/.local/lib/python3.11/site-packages/django/core/mail/__init__.py", line 87, in send_mail
return mail.send()
^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/django/core/mail/message.py", line 299, in send
return self.get_connection(fail_silently).send_messages([self])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/django/core/mail/backends/smtp.py", line 127, in send_messages
new_conn_created = self.open()
^^^^^^^^^^^
File "/root/.local/lib/python3.11/site-packages/django/core/mail/backends/smtp.py", line 94, in open
self.connection.login(self.username, self.password)
File "/usr/local/lib/python3.11/smtplib.py", line 716, in login
raise SMTPNotSupportedError(
smtplib.SMTPNotSupportedError: SMTP AUTH extension not supported by server.
Please verify that this bug has NOT been raised before.
Describe the bug*
I try to send sign in link via "send me email" menu on the sign in page. I have added email setting as below in .env file
I have tried to use that config using python script and it send me email successfully. But the Inventree produce error report as below
Steps to Reproduce
Expected behaviour
Send email successfully
Deployment Method
Version Information
Test on 0.16.9 and 0.17.2
Please verify if you can reproduce this bug on the demo site.
Relevant log output