Discussion

The Send-MailMessage cmdlet supports everything
you would expect an email-centric cmdlet to support: attachments,
plain-text messages, HTML messages, priority, receipt requests, and
more. The most difficult aspect usually is remembering the correct SMTP
server to use.

The Send-MailMessage cmdlet
helps solve this problem as well. If you don’t specify the -SmtpServer parameter, it
uses the server specified in the $PSEmailServer variable, if any.

For most of its functionality, the
Send-MailMessage cmdlet leverages the
System.Net.Mail.MailMessage class from the .NET
Framework. If you need functionality not exposed by the
Send-MailMessage cmdlet, working with
that class directly may be an option.