Skip to content
Snippets Groups Projects
Commit 9c1411d5 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

WIP

parent bca95c4d
No related branches found
No related tags found
2 merge requests!39Release 0.4.0,!20created draft for generic analysis method
Pipeline #16478 passed
......@@ -64,16 +64,15 @@ The following changes where done automatically.
""".format(changes="\n".join(changes))
try:
fro = caosdb_config["advancedtools"]["automated_updates.from_mail"]
to = receipient
except KeyError:
logger.error("Server Configuration is missing a setting for "
"sending mails. The administrator should check "
"'from_mail' and 'to_mail'.")
"'from_mail'.")
return
main_send_mail(
from_addr=fro,
to=to,
to=receipient,
subject="Automated Update",
body=text)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment