Sending email using Powershell script

   Below is a script that can be used to send email using Powershell.  function sendMail{      Write-Host “Sending Email”      #SMTP server name     $smtpServer = “smtp.xxxx.com”      #Creating a Mail object     $msg = new-object Net.Mail.MailMessage      #Creating SMTP server object     $smtp = new-object Net.Mail.SmtpClient($smtpServer)      #Email structure      $msg.From = “fromID@xxxx.com”     $msg.ReplyTo = “replyto@xxxx.com”    …

17