![Postman Icon](https://camo.githubusercontent.com/7c6e5e5ce3b07e01a50d632f8cffc75232edb5b0b14bc4cd2ec6ae8d7381d702/687474703a2f2f34312e6d656469612e74756d626c722e636f6d2f74756d626c725f6d643738377841706c4431726e726e65396f315f313238302e706e67)
Postie is a command line utility for batch sending emails and text messages. Inspired by [Postman](https://github.com/zachlatta/postman)
- Works with any SMTP server
- Send Text Messages using Twilio
- Fast, templated, bulk emails
- All of the power of Jinja 2 templating engine.
- Uses threads to send emails and text messages concurrently.
- Reads attributes from CSV file
$ usage: postie [-h] -t TEMPLATE -csv CSV [-sender SENDER] [-subject SUBJECT]
[-server SERVER] [-port PORT] [-user USER] [-pwd PASSWORD]
[-sid SID] [-token TOKEN]
$ postie -t template.txt -csv recipients.csv \
-sender "Bumblebee <[email protected]>" \
-subject "Hello, World!" -server smtp.bumblebee.com -port 587 \
-user bumble -password BumbleBee007
$ postie -t template.txt -csv recipients.csv \
-sender "Bumblebee <[email protected]>" \
-subject "Hello, World!" -sid AC32a3c49700934481addd5ce1659f04d2
-token {{ auth_token }}
Hey {{ Name }}. You are a {{ Type }}.
{% if Name == "Robot" %}
Yo, we are bros!
{% else %}
We are no more bros!
{% endif %}
Email,Name,Type
[email protected],Mike Ross,Human
mance@rayder,Mance Rayder,Wildling
[email protected],Victor Stone,Robot