Test email Office365

Plaats reactie
Site Admin
Berichten: 23
Lid geworden op: ma dec 03, 2018 9:35 am

Test email Office365

Bericht door administrator » di dec 04, 2018 9:41 am

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

Plaats reactie