Search
COACH Rames - May 29, 2021
- 1 min read
Step 1: Run Powershell
Step 2: Enter your Office 365 User Details
$msolcred = get-credential
Step 3: Send Mail
Send-MailMessage –From user@domain.com –To user@hotmail.com –Subject “Test Email” –Body “Test SMTP Relay Service” -SmtpServer smtp.office365.com -Credential $msolcred -UseSsl -Port 587
Don't forget to replace the required information with your info.
eg: From, To, Subject, Body
Also please note the From address must be the same email address associated with the provided user credentials.
597 views0 comments