A Workflow for Alfred 2 that allows you to choose recipients from your Mac Contacts, including Groups (or enter email addresses manually) and compose a message using the email app of your choice.
Note: Contacts in Exchange accounts are currently not supported. I'm working on it.
Uses the alfred-python library by nikipore and docopt.
Open Alfred, type mailto
(the default keyword) then either hit ENTER
to open an entirely blank message or start typing the name or email address you'd like to send a mail to.
Addresses will be suggested from matching contacts and groups in your Mac address book. Hit TAB
to autocomplete the recipient list from the selected result, or ENTER
or ⌘+NUM
to add the address and start composing a mail.
You can add multiple recipients by adding a comma between them.
Use mailtoconf
to view/change settings.
In theory, any email client should work, as MailTo uses the mailto:
protocol to call your email client.
If your chosen client doesn't work properly with MailTo, post a bug report, and I can possibly add formatting rules for that client.
The following email clients currently work "out of the box":
- Apple Mail
- Sparrow
- Thunderbird
- Postbox
- Airmail
- Unibox
- MailMate
- Google Chrome (if you've set a handler)
The following do not work:
- Safari (it will open your system default mail client instead)
If your email weapon-of-choice isn't working properly, you can try using email addresses only (use mailtohelp
in Alfred), and file a bug report, too. Perhaps we can get it to work.
- All the code I wrote is released under the MIT licence.
- alfred.py's author has indicated no licensing terms that I'm smart enough to find.
- docopt is released under the MIT licence.
- Email icon from Icon Archive is free for personal use.
- Original info icon from IconsDB is CC0 1.0 public domain.
- Original warning icon also from IconsDB as above.
Create an empty message:
Auto-complete addresses from your Contacts by name or by email address:
Add multiple recipients:
Handle unknown recipients and invalid addresses intelligently:
For more information, please see the included help file. mailtohelp
will open it from within Alfred.