simple one:
$emailFrom = "your mail"
$emailTo = "your mail"
$subject = "test mail from powershell"
$body = "your body"
$smtpServer = "127.0.0.1"
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$smtp.Send($emailFrom, $emailTo, $subject, $body)
-----------------------------------
sample two:(with attachment)
$filename = "d:\test.txt"
$smtpServer = "localhost"
$msg = new-object Net.Mail.MailMessage
$att = new-object Net.Mail.Attachment($filename)
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$msg.From = "your mail"
$msg.To.Add("your mail")
$msg.Subject = "sent by powershell"
$msg.Body = "The file is attached"
$msg.Attachments.Add($att)
$smtp.Send($msg)