When I executes the below command in the powershell Send-MailMessage @mailParams -BodyAsHtml -Credential $ SPOCreds -SmtpServer “abc.com” -UseSsl -Port 587 abc.com – Domain of office 365 exchange. I got the error “Send-MailMessage : The remote name could not be resolved: ‘abc.com’”. May be I have incorrectly configured SmtpServer in office 365 exchange admin center.Read more