Django email settings on Dreamhost

Greetings to a friend of the jungonauts
The Django app works great on Dreamhost. When I use gmail, the code error notifications and send_mail () from my views work fine.
When I use the mail and myhosthost settings, I can use send_mail () from my views, but I no longer receive code error notifications.
I checked with dreamhost, they said that my email settings were correct and that this should be a problem with the application. Are there any additional settings that I am missing? Any help would be greatly appreciated.

Here are my settings:

#settings.py #GMAIL SETTINGS: works great EMAIL_HOST = 'smtp.gmail.com' EMAIL_PORT = 587 EMAIL_HOST_PASSWORD = 'PASSWORD' EMAIL_HOST_USER = 'my_username' EMAIL_SUBJECT_PREFIX = '' EMAIL_USE_TLS = True #DREAMHOST SETTINGS: EMAIL_HOST = 'mail.my_site.com' #also tried 'localhost' EMAIL_PORT = 587 #also tried 25 EMAIL_HOST_PASSWORD = 'PASSWORD' EMAIL_HOST_USER = ' admin@my _site.com' EMAIL_SUBJECT_PREFIX = '' EMAIL_USE_TLS = True #i tried with and without TLS, it does not work. 

Thanks,

+4
source share
1 answer

By β€œcode error notifications,” I assume that you mean the emails you receive when there is a 500 exception.

Three settings control this feature.

  • SERVER_EMAIL - who is shown as "from" by email. Some SMTP servers will reject any email not coming from a known account. Try setting this to your Dreamhost accounts email address.

  • ADMINS is a tuple containing a list of those who are emailed when problems occur. Make sure this is configured with the specified email account:

     ADMINS = (('Jack Shedd', ' jack@example.com '),) 
  • DEBUG - False must be set

+2
source

All Articles