title: Powershell send email failure
body: <p>I'm writing a Powershell email feature, I used comdle </p>
  
  <pre><code>"Send-MailMessage -To mail -From mail -Subject" 
  </code></pre>
  
  <p>I'm getting the error: </p>
  
  <p><strong>Unable to connect to the remote server.</strong> </p>
  
  <p>Also, I wonder if this method works? </p>
  
  <pre><code>New-Object System.Net.Mail.MailMessage($From, $To, $Subject, $Body)
  </code></pre>
  
  <p>and what's the difference with Send-MailMessage?</p>