3

I use macOS's Mail app and have iCloud+. I have two mail addresses - my usual iCloud address and another through a custom domain that I own, that maps back to the iCloud account (something which is only possible with iCloud+ )

Incoming mail for both addresses appear in my iCloud inbox. No real problem. When composing outgoing mail I can select the sending address from the drop down in the "From" field. Also no problem.

I have set up two mail signatures, one intended for mail sent from the iCloud address, the other for mail sent from the custom address. When composing, both signatures are available from the "Signature" drop down. All good.

I want to have Mail select the correct signature according to the "From" address. If I change the selected "From" address, the selected signature should also change. Is this possible?

The challenge seems to be that the configuration of Mail, iCloud+ and the custom domain results in Mail thinking that there is only one account (in Mail/Settings/Accounts ) which is the iCloud one. My two signatures are both associated with that one account, although they are intended different for sending addresses. Mail sees that the sending account is iCloud and seems unable to select a signature by sending address.

Is there a way around this using AppleScript or other tool?

In Mail/Settings/Rules I have made the rule:

If From is equal to [email protected] , Run this applescript

tell application "Mail" set theMsg to (get first outgoing message) set message signature of theMsg to signature "albert" end tell

and I have a signature called albert, and another rule and script that should do the same for the custom address.

The script itself works, but Mail's rules seem to be only work on incoming mail and not outgoing.

Result: Neither of the rules and the scripts get triggered.

Is there a way to get mail to run a script on changing the sending address? Or other way to set the signature by sending address?

Mac OS 13.2.1 , Mail 16.0

2

1 Answer 1

0

In Mail app, go to Mail > Settings > Signatures.

In the left column, which is the account list, select the mail account for which you want to make a signature.

If "All Signatures" is selected, you will need to drag the new signature to the desired mail account to apply it to it.

Then, click Add, and in the middle column, name your signature. This name will appear in the Signature pop-up menu when you write an email.

The Mail Signatures settings pane showing a signature that contains formatted text and an image - from https://help.apple.com/assets/63CF0773EF8ABA61CC409172/63CF077AEF8ABA61CC40917A/en_GB/11df0257e38961654517bcfbc2f2e715.png


Check out Create and use email signatures for more info and guidance on this.

3
  • Thanks for the response but I effectively have (through iCloud+) two addresses associated with one account. I want mail to set the correct signature automatically, depending on the sending address.....
    – Albert
    Commented Mar 10, 2023 at 10:39
  • 1
    There is a plugin that is supposed to do that: github.com/scr34m/Signature, however I was not yet able to make it work.
    – Tobi
    Commented May 24, 2023 at 12:32
  • Update - I cannot get this plugin to work as it should.
    – Albert
    Commented Jun 16, 2023 at 14:34

Not the answer you're looking for? Browse other questions tagged .