Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Command-line Postmark

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 pmail.gemspec
README.md

pmail

pmail, send mail using Postmark from the command line.

Usage

Install by running

$ gem install pmail

pmail will look for a YAML file located in ~/.pmail which can be used to specify any of the parameters that pmail takes.

This is most useful for specifying your Postmark API key and sender signature. For example:

---
:api_key: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
:from: Ben Ubois <ben@benubois.com>

Examples

$ pmail -t ben@benubois.com -s Subject < message_body.txt
Something went wrong with that request. Please try again.