$body = "tester email fra powershell"
$fromaddress = "someone@somewhere.com"
$toaddress = "receiver@anywhere.com"
$subject = "test mail"
$smtp = "smtp.office365.com"
$port = "587"
Send-MailMessage -from $fromaddress -to $toaddress -subject $subject -body $body -BodyAsHtml -UseSsl -Credential (Get-Credential) -smtpServer $smtp -port $port
Ingen kommentarer:
Send en kommentar
Bemærk! Kun medlemmer af denne blog kan sende kommentarer.