MailAddress Class (System.Net.Mail) | Microsoft Docs

definition

examples

The following code example shows sending an email message using the smtpclient, mailaddress, and mailmessage classes.

remarks

The mailaddress class is used by the smtpclient and mailmessage classes to store address information for email messages.

An email address is made up of a username, a hostname, and optionally a display name. the display name can contain non-ascii characters if you encode them.

The email address class supports the following email address formats:

Leave a Reply

Your email address will not be published. Required fields are marked *