Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like my Mac to play a sound when certain email arrives. For example if the subject contains "xyz", play "mycustomsound.mp3".

Any easy way to do this?

share|improve this question
up vote 4 down vote accepted

Assuming your using, add a mail rule.

Go to Mail -> Preferences -> Rules. Add a rule based on your criteria (Subject Contains | Is Equal To | Starts with "xyz").

Under "Perform the following action" select "Play sound". You can choose a preset sound or select "Add/Remove" to set your own custom sound.

share|improve this answer
Thanks, just what I needed. Worth adding there is a bug in Mail where it will not play sounds on new mail if fetched by IMAP "idle" method rather than polling (see Instead, I made an applescript to play a sound and called that in the Mail Rule, which works fine. – Nick Moore Apr 15 '11 at 18:57

You can change ALL your Mail sound alerts by doing this: Right Click the - choose 'Show Package Contents' Navigate to 'Resources'. There are 4 .aiff files: Mail Fetch Error.aiff Mail Sent.aiff New Mail.aiff (That's the one you can change via the Mail, Preferences, General interface) No Mail.aiff Trash whichever one you want to change: you'll need your Administrator password Find, create, whatever sound file (It must be the same format, ie: .aiff) Rename it to the one above that you trashed Transfer it to the Resources window Confirm your admin password.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.