A utility to send email from the Windows command line. Useful for automation workflows!
(Not to be confused with Sendmail)
Builds with pyinstaller.
Fork or clone the repo and execute build.cmd to build the executable.
Sends an email via Outlook
sendMail [-h] [--cc CC] [--attachments ATTACHMENTS] [--edit] --to TO --subject SUBJECT --body BODY
| Parameter | Usage |
|---|---|
| -h, --help | Shows help message and exits |
| --to | Recipients (semicolon delimited) |
| --cc | CC recipients (semicolon delimited) |
| --subject | Email subject line |
| --body | Email body |
| --attachments | Attachment paths (semicolon delimited) |
| --edit | Open draft instead of immediately sending |
To, subject, and body are required. Note that there is a shocking lack of error checking here, validate your output before you feed this beast!
Returns 0 on success or 1 on failure
Distributed under the MIT License. See LICENSE.txt for more information.
Andrew Krause - ajkrause@gmail.com
Project Link: https://github.com/scgrn/sendMail