- To open PowerShell right-click the start button and Choose Windows PowerShell.
- Enter the following command
- $msolcred = get-credential
- A window pops up. Enter your office365 credentials there.
- Then use the Send-MailMessage command to send a test email
- Send-MailMessage –From georgia.k@c***i.gr –To georgia.k@c***i.gr –Subject “Guess what!” –Body “I am Testing the SMTP Relay Service from PowerShell” -SmtpServer smtp.office365.com -Credential $msolcred -UseSsl -Port 587
TEST SMTP ON OFFICE 365 accounts Print
Modified on: Sun, 12 Feb, 2023 at 4:17 PM
Did you find it helpful? Yes No
Send feedbackSorry we couldn't be helpful. Help us improve this article with your feedback.