I’m using Amazon SES (Simple Email Service) as SMTP and it’s working flawlessly (activation email sent to registered users). but when I tried to send the Course Creator Request email, it failed.
Failure sending 'pending state' e-mail for user.email to studio_request_email",
I used a YAML plugin and set STUDIO_REQUEST_EMAIL to my desired email and it works fine when I’m using Google as SMTP on local but it’s not working with AWS.
I think the issue is with the send_mail function.
How sending emails are handled in different sections like registrations and why it’s different here ?
Are there any variables needed to be set in config.yml to solve this issue??
What are the logs from the lms-worker and cms-worker containers after the task failed?
EDIT: the email is sent to and from the email address stored in settings.FEATURES.get('STUDIO_REQUEST_EMAIL'). The default for this email address is… an empty string (source)
We can verify that this address is also undefined in tutor:
tutor local run --no-deps cms ./manage.py cms shell -c "from django.conf import settings; print(settings.FEATURES.get('STUDIO_REQUEST_EMAIL'))"