title: Send email from the <> null sender address
body: <pre><code>Send-MailMessage
   -From "from@example.com"
   -To "to@example.com"
   -Subject "Subject" `
   -SmtpServer "localhost" -Body "Test Message"
  </code></pre>
  
  <p>I'm sending email using <a href="https://technet.microsoft.com/en-us/library/hh849925.aspx" rel="nofollow">Send-MailMessage</a>, the powershell equivalent of using System.Net.Mail.MailMessage.</p>
  
  <p>Is there any way of sending email from the null sender address? If not are there any powershell/.NET alternatives I can use.</p>
  
  <p>From is required so cannot be omitted. null, "" etc aren't acceptable because Send-MailMessage validates the from is an email address. </p>
  
  <hr>
  
  <p><a href="http://utcc.utoronto.ca/usg/technotes/smtp-intro.html" rel="nofollow">&lt;> Null sender address</a>: <em>"The sender address is the email address that will receive email about delivery problems (mailing lists change this but not the From: email header so that they, and not the people sending to them, get messages about delivery problems). A special null sender address (MAIL FROM:&lt;>) is used to signal that no one cares and no bounce notifications should be sent. Null senders are used when sending bounce messages themselves, and sometimes at other times."</em></p>