snews_cs.cs_email

Attributes

log

smtpserver

sender

password

smtpserver

contact_list_file

contact_list

Functions

send_email(alert_content)

Send the SNEWS alert via e-mail

_smtp_sender(body, subject, addr[, attachment])

send_feedback_mail(detector[, attachment, ...])

Send feedback email to authorized, requested users

send_warning_mail(detector[, message_content])

Send warning mail when a heartbeat is skipped

Module Contents

snews_cs.cs_email.log[source]
snews_cs.cs_email.smtpserver = '127.0.0.1'[source]
snews_cs.cs_email.sender[source]
snews_cs.cs_email.password[source]
snews_cs.cs_email.smtpserver[source]
snews_cs.cs_email.contact_list_file = b'.'[source]
snews_cs.cs_email.contact_list[source]
snews_cs.cs_email.send_email(alert_content)[source]

Send the SNEWS alert via e-mail

snews_cs.cs_email._smtp_sender(body, subject, addr, attachment=None)[source]
snews_cs.cs_email.send_feedback_mail(detector, attachment=None, message_content=None, given_contact=None)[source]

Send feedback email to authorized, requested users

snews_cs.cs_email.send_warning_mail(detector, message_content=None)[source]

Send warning mail when a heartbeat is skipped This function is invoked within the feedback script