Command-line utility and Ruby library for creating/sending messages in OSX's program.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

MacMailer is a command-line utility and Ruby library for creating and sending messages in OSX's program.


gem install macmailer

Command-Line Usage

You can create and send messages from the command-line with MacMailer. All flags are optional. So to create a blank message — it'll show up in in the background — simply type:


To create a more complicated message, try:

macmailer --subject "Hello, world." --body "Take me toooo... ComputerTowwwwwn." --to Jeremy Singer-Vine --cc --bcc

You can specify multiple recipients per field by issuing the same flag again. For example:

macmailer --to --to

If you're absolutely sure you want to send your message without proofreading it, you can pass the --send flag:

macmailer --subject "Autosending..." --to --send

Library Usage

You can also integrate MacMailer into any Ruby program by adding the following line to your code:

require "macmailer"

For now, the only MacMailer::Message is the only class in the library. To populate a new Message instance:

msg ={
	:subject => "She makes the sign of a teaspoon",
	:body => "He makes the sign of a wave",
	:recipients => [
		{ :address => "" },
		{ :address => "", :type => :cc },
		{ :address => "", :name => "Jeremy", :type => :bcc }

To create a new message from that instance:


Or, if you're absolutely sure you want to send the email before checking it:


Just for Fun

macmailer --thanks