I'd like mail to be automatically be sent from an account based on domain the domain of the recipient.

Details:

I've set up multiple email accounts in mail.app, both personal and work. I find myself frequently annoyed, because I forget to set the "from" address, and thus email work from my personal account. What I'd like to have happen, is if the email recipient is boss@serious.biz, then use my account with derek@serious.biz, otherwise use derek@clownpants.com, or something to that effect.

As an update, it looks like the answer is no. I've looked at applescript and it doesn't look like there is any sort of hook in that would work for this, someone please chime in if this is wrong.
–
derekvOct 9 '12 at 14:47

Darn, I had literally the exact same question. Are there any email apps at all that can do this?
–
daGUYDec 28 '12 at 16:30

1 Answer
1

Unfortunately, there is no way to do this in Apple Mail. It only works for messages which you are replying to (they automatically use the same outgoing address which received the original message). There is no hook in AppleScript, nor an option in Automator by which to make this happen. If it were possible, as of right now, it would still require a third-party plugin, which I have not been able to find either. So unfortunately, the answer is now.

Note: Also, if you select the inbox of the account from which you want to send the message, then compose, Mail will automatically use that account's email address for sending, unless you change it. Not quite as helpful as what you were hoping for, but at least something worth considering.