|
Odyssey
|
Classes | |
| class | CustomArgumentParser |
Functions | |
| def | getParser () |
| def | main (argv) |
| def | run () |
Variables | |
| tuple | format |
| LOGGER = logging.getLogger(__name__) | |
| logging_handler = logging.StreamHandler() | |
| tuple | USAGE_HELP |
| AWS_REGION = os.getenv('AWS_REGION', 'us-west-2') | |
Send emails through AWS SES. Uses the AWS SES call send-mail. Has the following parameters: Body contents: (at least one of the following has to be specified.) - text -- the plain text version of the email. - html -- the HTML-formatted version of the email. - subject -- the subject of the email. This is required. - efrom -- the from email. This is required. The efrom requires verification by AWS SES (either by email address or by domain.) - replyto -- the reply to email. (submitform.pl & submitsecure.pl) Email destinations: (at least one of the following has to be specified.) Destinations are space-separated like a@comp.dom b@comp.dom ... - to -- a list of to recipients. (Who the email is actually addressed to.) - bcc -- a list of bcc recipients. (List isn't visible in email.) - cc -- the cc for the email. (Visible list in email.) Amazon requires the from email to be verified or the domain verified.
| def sendSESEmail.getParser | ( | ) |
Prepare argument parser.
Returns:
parser -- ArgumentParser object
Definition at line 76 of file sendSESEmail.py.
| def sendSESEmail.main | ( | argv | ) |
Main method to execute operations on email verification.
Arguments:
argv {list} -- list of script arguments
Raises:
SystemExit
BaseException
Definition at line 137 of file sendSESEmail.py.
| def sendSESEmail.run | ( | ) |
Script entrypoint
Definition at line 262 of file sendSESEmail.py.
| tuple sendSESEmail.format |
Definition at line 35 of file sendSESEmail.py.
| tuple sendSESEmail.USAGE_HELP |
Definition at line 44 of file sendSESEmail.py.
1.8.15