Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add utils.mail or Mail Interface #182
Sending email is a pretty common need for command line apps. Having an IMail interface would be handy, and would allow app developers to easily add [mail] configurations to their app config files. Think:
Note that this use case would likely need 'mail_handler' added to the list of 'allow_meta_override' so that under your primary application's config you can set 'mail_handler = dummy' or whatever and not make it a hardcoded application setting.
app.mail.send("This is the message going to all default recipients.") app.mail.send( body='This is the message.', to=['email@example.com', 'firstname.lastname@example.org'], cc=['email@example.com'], bcc=['firstname.lastname@example.org'], subject='Howdy', email@example.com', )