Skip to content

Email Server Error #8887

Description

@deddy11

Please verify that this bug has NOT been raised before.

  • I checked and didn't find a similar issue

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

  1. add email configuration
  2. sign up with email provided
  3. go to sign up menu, and click "send me link" button
  4. write your email address
  5. click "Send Email" button

Expected behaviour

Send email successfully

Deployment Method

  • Docker
  • Package
  • Bare metal
  • Other - added info in Steps to Reproduce

Version Information

Test on 0.16.9 and 0.17.2

Please verify if you can reproduce this bug on the demo site.

  • I 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    inactiveIndicates lack of activityquestionThis is a question

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions