Jump to content

FastMailx: send an email to a preset address


Recommended Posts

FastMailx

 

Send an email to a preset address in a single command.  Uses OS X's mailx command line util, so it's extremely lightweight and quick.

 

Example:

 

..To do today/Stop hacking on workflows and do the laundry

 

sends an email to my personal address as defined in the script's MAILTO variable:

 

To: <my address>

Subject: To do today

Stop hacking on workflows and do the laundry

 

I'm brand-new to Alfred and very rusty in my UNIX skills, so please: be gentle :)  I'm unlikely to maintain or extend this, but others are welcome to.

 

Installation

 

 

Keywords

  • ..subject /body - Send a message to MAILTO with subject and body separated by a slash ( / ).

 

Known issues

 

  • Doesn't handle errors;  if you don't set your MAILTO address, the command will silently fail.
  • No input validation.
  • It's pretty crappy. I have no idea what I'm doing.
  • A slash may be a lousy field separator;  feel free to change the IFS variable to something better.
  • Unforeseen consequences are unforeseen. Could go berzerk and destroy everything you love. Use at your own risk.

 

 

Changelog

  • 2013-05-08: Initial release.
Edited by benjyfeen
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...