This command has been deprecated.
This allows you to send an SMTP email message from a local device, to test if the credentials or setup is working
This can be useful when setting up a scan to email device, and you are having trouble getting it to work.
Commands
$UserCredential = Get-Credential
Send-MailMessage -From "[email protected]" -To "[email protected]" -Subject (Get-Date) -Body "Test Email" -SmtpServer "smtp.office365.com" -Credential $UserCredential -UseSsl -Port 587