Think it’s a good idea to send error emails to the user: Error reporting | Django documentation | Django
But how to get the needed EMail settings? Settings | Django documentation | Django
Think it’s a good idea to send error emails to the user: Error reporting | Django documentation | Django
But how to get the needed EMail settings? Settings | Django documentation | Django
It seems that i just can send mails via localhost. A good starting point seems to be:
ADMINS = (('$admin', '$admin_mail'),)
SERVER_EMAIL = 'admin$domain'
DEFAULT_FROM_EMAIL = 'admin$domain'
EMAIL_BACKEND='django.core.mail.backends.smtp.EmailBackend'
EMAIL_HOST='localhost'
EMAIL_PORT=25
EMAIL_USE_TLS=False
EMAIL_USE_SSL=False
EMAIL_SSL_CERTFILE=None
EMAIL_SSL_KEYFILE=None
EMAIL_HOST_USER=''
EMAIL_HOST_PASSWORD=''
Sadly $admin_mail
is the internal YunoHost email. On the other side: This may be the best option?!? The admin user can fetch mails from there or redirect them.
Sadly i can’t test redirections, because of:
I made some future tests. Sending emails works out of the box with default settings.
The Problem may: All mails sends to YunoHost admin any maybe they should go to a different mail address. I document how to change this in README here: Add info about emails into README · YunoHost-Apps/pyinventory_ynh@16c89ef · GitHub