Test Office365 Email Updated December 30, 2024 $cred = get-credentialSend-MailMessage -From your_email_address -To rcpt_email_address -Subject "Test Email" -Body "Test SMTP Service from Powershell on Port 587" -SmtpServer smtp.office365.com -Credential $creds -UseSsl -Port 587Watch Video Tutorial Was this article helpful?