Commit 51e6c607 authored by Trevor Cappallo's avatar Trevor Cappallo
Browse files

add example mail script

parent b01df39f
import OperationalMail as OpMail
#import OperationalLogger as OpLog
#import logging
# OpLog not actually necessary if you want quick and dirty
#OpLog.setup(notify={'DEBUG':'tcappallo@veriskclimate.com'})
#logger = logging.getLogger(__name__)
#logger.info("This is a proof of concept for conveying information via electronic mail.")
OpMail.send_status(
subject="hello world!",
message="I am an email <b>body</b>.",
to_list=["tcappallo@veriskclimate.com"],
from_address="whatevs@aer.com",
use_monospaced=False,
attachments=["/scratch/red/ClimateCast_ERIKA_2015082800.pdf", "/scratch/red/exists.txt", "/scratch/red/does_not_exist.txt"],
Cc=', '.join(['a@fail.com', 'b@fail.com', 'msze@aer.com']),
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment