Not getting verification / any Email

Hello guys, I have both LMS and CMS running well in production and I configured the email-related settings with Amazon SES. Here is my config.yml

CONTACT_EMAIL: learn@abc.in
DEFAULT_FROM_EMAIL: learn@abc.in
ENABLE_HTTPS: true
SMTP_HOST: email-smtp.******.amazonaws.com
SMTP_HOST_USER: learn@abc.in
SMTP_PASSWORD: ****************************
SMTP_PORT: 465
SMTP_USE_TLS: true

These are all my email-related configs in the config.yml. When I added these, I ran tutor config save and restarted. Everything was reflected in the lms.env.yml and cms.env.yml except for the HOST_USER.

Here is my lms.env.yml

CONTACT_EMAIL: “learn@abc.in”
EMAIL_BACKEND: “django.core.mail.backends.smtp.EmailBackend”
EMAIL_HOST: “email-smtp..amazonaws.com"
EMAIL_PORT: 465
EMAIL_USE_TLS: true
EMAIL_HOST_USER: “”
EMAIL_HOST_PASSWORD: "
***************************************************”

Here you can see the EMAIL_HOST_USER is not picked up. But, the rest all picked up when I saved the config and restarted the services.

Why is the mail service not working? Anything I missed to configure? Is that not working because the EMAIL_HOST_USER is empty??

Hello

I have followed the official documentation https://docs.tutor.edly.io/tutorials/google-smtp.html

to setup Office365 SMTP server and it worked fine.

From the same documentation try to send test email:

$ tutor local run --no-deps lms ./manage.py lms shell -c \
  "from django.core.mail import send_mail; send_mail('test subject', 'test message', 'YOURUSERNAME@gmail.com', ['YOURRECIPIENT@domain.com'])"

And check the logs for troubleshooting

Thank you @harout7 That was helpful. It worked when I changed the EMAIL_PORT: 465 —> 587.

1 Like

@guru-77, glad that your issue is resolved.

You can mark your last reply as a solution so others can refer to it.

@jramnai, Done. Sorry, I missed to do that

1 Like