title: Sending mail with Powershell Windows 7
body: <p>I cant get this to work on a windows 7 client with powershell 2</p>
  
  <pre><code> $smtpServer = "smtp.example.com"
   $msg = new-object Net.Mail.MailMessage
   $smtp = new-object Net.Mail.SmtpClient($smtpServer)
   $msg.From = "fromID@example.com"
   $msg.ReplyTo = "replyto@example.com"
   $msg.To.Add("toID@example.com")
   $msg.subject = "My Subject"
   $msg.body = "This is the email Body."
   $smtp.Send($msg)
  </code></pre>
  
  <p>I am getting an exception that says "Exception calling "Send with "1" arguments" Failure Sending mail"
  Anyone have any idea?
  I have tried Send-MailMessage but it also fails, if I run the command on a server based windows it executes fine. 
  I use the same account for the procedures. </p>