Met auth:
$msolcred = get-credential | save the credential of from address
Send-MailMessage –From user@domain.com –To user@whatever.com –Subject “Test Email” –Body “Test SMTP Relay Service” -SmtpServer smtp.office365.com -Credential $msolcred -UseSsl -Port 587
Zonder auth:
Send-MailMessage –From user@domain.com –To user@domain.com –Subject “Test Email” –Body “Test SMTP Relay Service” -SmtpServer domain-nl.mail.protection.outlook.com
Test email Office365
-
- Site Admin
- Berichten: 22
- Lid geworden op: ma dec 03, 2018 9:35 am