title: How do I play the "New Mail" system sound in .Net?
body: <p>How do I play the "New Mail" system sound in C#? This is also called the "Notify" sound.</p>
  
  <p>In Win32, that would be something like </p>
  
  <pre><code>sndPlaySound('Notify', (SND_ALIAS or SND_ASYNC));
  </code></pre>
  
  <p>So how do you do that in .Net? I know that you can do </p>
  
  <pre><code>System.Media.SystemSounds.Asterisk.Play();
  </code></pre>
  
  <p>But there's a very limited set of five sounds there - not including whatever the the user has set as the new mail sound.</p>
  
  <p>I can find out which .wav file is being played when I get new mail and play that file, but that won't update when the user's sound scheme is changed. </p>
  
  <hr>
  
  <p>What I eventually did:</p>
  
  <p>Instead of playing a system sound, I embedded a wav file into the application as a resource, and played it with <code>System.Media.SoundPlayer</code></p>