Skip to content
Snippets Groups Projects
Verified Commit daead5be authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: diagnostics sendmail

parent fc07c696
Branches
Tags
No related merge requests found
...@@ -127,9 +127,10 @@ def test_send_mail(): ...@@ -127,9 +127,10 @@ def test_send_mail():
result = dict() result = dict()
import caosdb import caosdb
from caosadvancedtools.serverside import helper from caosadvancedtools.serverside import helper
result["sendmail_bin"] = caosdb.get_config()["Misc"]["sendmail"]
test_mail_to = get_option("test-mail-to") test_mail_to = get_option("test-mail-to")
test_mail_from = get_option("test-mail-from") test_mail_from = get_option("test-mail-from")
result["sendmail_bin"] = get_option("test-sendmail-bin",
caosdb.get_config()["Misc"]["sendmail"])
if test_mail_to is not None and test_mail_from is not None: if test_mail_to is not None and test_mail_from is not None:
helper.send_mail(from_addr=test_mail_from, helper.send_mail(from_addr=test_mail_from,
to=test_mail_to, to=test_mail_to,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment