zachlatta / postman

CLI tool for batch-sending email via any SMTP server.
775 stars 52 forks source link

new command line option : -config #3

Open voidabhi opened 10 years ago

voidabhi commented 10 years ago

The idea is to bundle arguments which are rarely changed by the user. And storing these bundles as key value pairs in a file.

$ postman -html template.html -text template.txt -csv recipients.csv \
    -sender "Zaphod Beeblebrox <zaphod@beeblebrox.com>" \
    -subject "Hello, World!" -server smtp.beeblebrox.com -port 587 \
    -user zaphod -password Betelgeuse123

Instead of this we can have..

$ postman -html template.html -text template.txt -csv recipients.csv \
    -sender "Zaphod Beeblebrox <zaphod@beeblebrox.com>" \
    -subject "Hello, World!" -config beeble

Where beeble is the key to the bundle of required configuration.

blackrosezy commented 10 years ago

+1 nice idea, I like!

zachlatta commented 10 years ago

Agreed! Really like this idea. As always, PRs are welcome. If not, I'll try to get to implementing this when I have a chance. Maybe sometime this weekend.

Zach Latta http://zachlatta.com https://github.com/zachlatta https://twitter.com/zachlatta

On Thu, Aug 28, 2014, at 08:58 PM, Mohd Rozi wrote:

+1 nice idea, I like!

— Reply to this email directly or [1]view it on GitHub.

References

  1. https://github.com/zachlatta/postman/issues/3#issuecomment-53834955