mediacms-io / mediacms

MediaCMS is a modern, fully featured open source video and media CMS, written in Python/Django and React, featuring a REST API.
https://mediacms.io
GNU Affero General Public License v3.0
2.52k stars 458 forks source link

SMTP not working #984

Open SKJoy opened 3 months ago

SKJoy commented 3 months ago

Describe the issue SMTP settings been set as per instruction but contact form notification is not being sent to admin emails.

To Reproduce Steps to reproduce the issue:

  1. Set SMTP settings in settings.py (as well in local_settings.py)
  2. Restart MediCMS server
  3. Go to MediaCMS Contact form and submit a message
  4. Notification never received to the admin emails

Expected behavior Contact form message notification should arrive at admin emails.

Environment (please complete the following information):

Additional context

SMTP settings

EMAIL_HOST = "mail.smtp_server.com" EMAIL_HOST_USER = "mediacms.test@smtp_server.com" EMAIL_HOST_PASSWORD = "CORRECT_PASSWORD" EMAIL_PORT = 587 EMAIL_USE_TLS = True DEFAULT_FROM_EMAIL = "mediacms.test@smtp_server.com" SERVER_EMAIL = DEFAULT_FROM_EMAIL ADMIN_EMAIL_LIST = ["admin_1@domain.com", "admin_2@domain.com"]

Test information

SKJoy commented 3 months ago

The SMTP configuration seemed to work after a server REBOOT! Is there a simpler way to reflect the configuration without a server reboot?