We are facing a problem with email sends: if we try to enroll users with Instructor > Membership > Batch Enrollment no email is being send and it shows the following error: Error enrolling/unenrolling users.
Sometimes the following funcionalities fail to send emails:
- Reset password
- Forgot password
- Activate account
While bulk enrollments fails constantly, the other funcionalities fail from time to time. We were able to reproduce it by overloading the MySQL container.
Sending emails through
tutor local run --no-deps lms ./manage.py lms shell -c "from django.core.mail import send_mail; send_mail('test subject', 'test message', '', ['firstname.lastname@example.org']) works perfectly fine.
We tried to follow the error through the logs, but we were unable to track it.
This issue seem to affect to other users:
- Tutor Email not sending - #7 by cigisebastine
- Problem with smtp service in Open edX - #8 by alishaik
- django - Open EDX - LMS : Unable to send verification email - Stack Overflow
In our config.yml:
RUN_SMTP: false SMTP_HOST: uam-es.mail.protection.outlook.com SMTP_PASSWORD: '' SMTP_PORT: 25 SMTP_USERNAME: '' SMTP_USE_SSL: false SMTP_USE_TLS: true
And also in the lms settings:
BULK_EMAIL_DEFAULT_FROM_EMAIL = 'email@example.com' ### DEFAULT_FROM_EMAIL = 'firstname.lastname@example.org'
Any help is welcome,
Thanks in advance