benjyfeen Posted May 8, 2013 Posted May 8, 2013 (edited) 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 You MUST enable Postfix to make this work! Instructions for Mountain Lion with Gmail are here:http://benjaminrojas.net/configuring-postfix-to-send-mail-from-mac-os-x-mountain-lion/ Download from http://feen.com/alfred/ Import and edit MAILTO in the script to set the destination address. 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 May 9, 2013 by benjyfeen
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now