title: Send mail via powershell without authentication
body: <p>I was using nant to send mail and it is working fine - something like</p>
  
  <pre><code>&lt;mail 
      from="Test@b.c" 
      tolist="A@b.c" 
      subject="Test" 
      mailhost="myhost.mydomain.com"
      isbodyhtml="true"
      message= "${Test}"&gt;
  &lt;/mail&gt;
  </code></pre>
  
  <p>I didn't have to use any kind of authentication.</p>
  
  <p>Now when using powershell it seems I am forced to use authentication - something like this would fail:</p>
  
  <pre><code>Send-MailMessage -To $to -From $from -Subject "Test" –Body “Test (body) -SmtpServer "myhost.mydomain.com"
  </code></pre>
  
  <p>I would get the following message:</p>
  
  <pre><code>Send-MailMessage : No credentials are available in the security package
  </code></pre>
  
  <p>Am I missing some way to send mails without specifying credentials if the server supports that?</p>
  
  <p>Edit:
  I've also tried the answer here to send anonymous mails but it just times out:
  <a href="https://serverfault.com/a/543115">send anonymous mails using powershell</a></p>