SMTP Testmail via PowerShell
$server = "smtp.example.org"
$port = 587
$user = "from@example.org"
$password = "xxx"
$from = "from@example.org"
$to = "to@example.org"
$subject = "Testmail Subject"
$body = "Testmail Body"
$smptClient = New-Object Net.Mail.SmtpClient($server, $port)
$smptClient.EnableSsl = $true
$smptClient.Credentials = New-Object System.Net.NetworkCredential($user, $password);
$mail = New-Object System.Net.Mail.MailMessage($from, $to, $subject, $body)
$smptClient.Send($mail)