Test email Office365

Post Reply
administrator
Site Admin
Posts: 82
Joined: Mon Dec 03, 2018 10:35 am

Test email Office365

Post by administrator » Tue Dec 04, 2018 10: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

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests