$from = "any@gmx.com" $to = "rob@gmail.com" $subj = "test PShell." $body = "boddy" $server = "mail.gmx.com" $port = "587" Send-MailMessage -From $from -To $to -Subject $subj -body $body -SmtpServer $server -Port $port -UseSsl -Credential (Get-Credential)