title: Sending E-mail from Powershell Failing on One Machine
body: <p>I have a bit of powershell to send an e-mail:</p>
  
  <pre><code>$smtp = new-object Net.Mail.SmtpClient($smtpServer)
  $smtp.Send($emailFrom, $emailTo, $subject, $body)
  </code></pre>
  
  <p>This works perfectly on every machine I've ever tried it on until today. I have one machine where I get this error message:</p>
  
  <blockquote>
    <p>Exception calling "Send" with "4" argument(s): "Failure sending mail."
    At R:\sqlrestore\scripts\Utilities\Check-Lag.ps1:15 char:12
    +     $smtp.Send &lt;&lt;&lt;&lt; ($emailFrom, $emailTo, $subject, $body)
        + CategoryInfo          : NotSpecified: (:) [], ParentContainsErrorRecordException
        + FullyQualifiedErrorId : DotNetMethodException</p>
  </blockquote>