The System.Net.Mail namespace contains classes used to send electronic mail to a Simple Mail Transfer Protocol (SMTP) server for delivery.
The System.Net.Mail.MailMessage class represents the content of a mail message. The System.Net.Mail.SmtpClient class transmits email to the SMTP host that you designate for mail delivery. You can create mail attachments using the System.Net.Mail.Attachment class.
Type | Reason |
---|---|
AlternateView |
Represents the format to view an email message. |
AlternateViewCollection |
Represents a collection of System.Net.Mail.AlternateView objects. |
Attachment |
Represents an attachment to an e-mail. |
AttachmentBase |
Base class that represents an email attachment. Classes System.Net.Mail.Attachment, System.Net.Mail.AlternateView, and System.Net.Mail.LinkedResource derive from this class. |
AttachmentCollection |
Stores attachments to be sent as part of an e-mail message. |
DeliveryNotificationOptions |
Describes the delivery notification options for e-mail. |
LinkedResource |
Represents an embedded external resource in an email attachment, such as an image in an HTML attachment. |
LinkedResourceCollection |
Stores linked resources to be sent as part of an e-mail message. |
MailAddress |
Represents the address of an electronic mail sender or recipient. |
MailAddressCollection |
Store e-mail addresses that are associated with an e-mail message. |
MailMessage |
Represents an e-mail message that can be sent using the System.Net.Mail.SmtpClient class. |
MailPriority |
Specifies the priority of a System.Net.Mail.MailMessage. |
SendCompletedEventHandler |
Represents the method that will handle the System.Net.Mail.SmtpClient.SendCompleted event. |
SmtpAccess |
Specifies the level of access allowed to a Simple Mail Transport Protocol (SMTP) server. |
SmtpClient |
Allows applications to send e-mail by using the Simple Mail Transfer Protocol (SMTP). |
SmtpDeliveryMethod |
Specifies how email messages are delivered. |
SmtpException |
Represents the exception that is thrown when the System.Net.Mail.SmtpClient is not able to complete a erload:System.Net.Mail.SmtpClient.Send or erload:System.Net.Mail.SmtpClient.SendAsync operation. |
SmtpFailedRecipientException |
Represents the exception that is thrown when the System.Net.Mail.SmtpClient is not able to complete a erload:System.Net.Mail.SmtpClient.Send or erload:System.Net.Mail.SmtpClient.SendAsync operation to a particular recipient. |
SmtpFailedRecipientsException |
The exception that is thrown when e-mail is sent using an System.Net.Mail.SmtpClient and cannot be delivered to all recipients. |
SmtpPermission |
Controls access to Simple Mail Transport Protocol (SMTP) servers. |
SmtpPermissionAttribute |
Controls access to Simple Mail Transport Protocol (SMTP) servers. |
SmtpStatusCode |
Specifies the outcome of sending e-mail by using the System.Net.Mail.SmtpClient class. |