Open PowerShell (admin level) 

 

1. $msolcred = get-credential

 

2. Send-MailMessage –From This email address is being protected from spambots. You need JavaScript enabled to view it. –To This email address is being protected from spambots. You need JavaScript enabled to view it. –Subject “Test Email” –Body “Test SMTP Relay Service” -SmtpServer smtp.office365.com -Credential $msolcred -UseSsl -Port 587