System.Net.Mail Namespace

 

The System.Net.Mail namespace contains classes used to send electronic mail to a Simple Mail Transfer Protocol (SMTP) server for delivery.

ClassDescription
System_CAPS_pubclassAlternateView

Represents the format to view an email message.

System_CAPS_pubclassAlternateViewCollection

Represents a collection of AlternateView objects.

System_CAPS_pubclassAttachment

Represents an attachment to an e-mail.

System_CAPS_pubclassAttachmentBase

Base class that represents an email attachment. Classes Attachment, AlternateView, and LinkedResource derive from this class.

System_CAPS_pubclassAttachmentCollection

Stores attachments to be sent as part of an e-mail message.

System_CAPS_pubclassLinkedResource

Represents an embedded external resource in an email attachment, such as an image in an HTML attachment.

System_CAPS_pubclassLinkedResourceCollection

Stores linked resources to be sent as part of an e-mail message.

System_CAPS_pubclassMailAddress

Represents the address of an electronic mail sender or recipient.

System_CAPS_pubclassMailAddressCollection

Store e-mail addresses that are associated with an e-mail message.

System_CAPS_pubclassMailMessage

Represents an e-mail message that can be sent using the SmtpClient class.

System_CAPS_pubclassSmtpClient

Allows applications to send e-mail by using the Simple Mail Transfer Protocol (SMTP).

System_CAPS_pubclassSmtpException

Represents the exception that is thrown when the SmtpClient is not able to complete a Send or SendAsync operation.

System_CAPS_pubclassSmtpFailedRecipientException

Represents the exception that is thrown when the SmtpClient is not able to complete a Send or SendAsync operation to a particular recipient.

System_CAPS_pubclassSmtpFailedRecipientsException

This API supports the product infrastructure and is not intended to be used directly from your code. The exception that is thrown when e-mail is sent using an SmtpClient and cannot be delivered to all recipients.

System_CAPS_pubclassSmtpPermission

Controls access to Simple Mail Transport Protocol (SMTP) servers.

System_CAPS_pubclassSmtpPermissionAttribute

Controls access to Simple Mail Transport Protocol (SMTP) servers.

DelegateDescription
System_CAPS_pubdelegateSendCompletedEventHandler

Represents the method that will handle the SendCompleted event.

EnumerationDescription
System_CAPS_pubenumDeliveryNotificationOptions

Describes the delivery notification options for e-mail.

System_CAPS_pubenumMailPriority

Specifies the priority of a MailMessage.

System_CAPS_pubenumSmtpAccess

Specifies the level of access allowed to a Simple Mail Transport Protocol (SMTP) server.

System_CAPS_pubenumSmtpDeliveryFormat

The delivery format to use for sending outgoing e-mail using the Simple Mail Transport Protocol (SMTP).

System_CAPS_pubenumSmtpDeliveryMethod

Specifies how email messages are delivered.

System_CAPS_pubenumSmtpStatusCode

Specifies the outcome of sending e-mail by using the SmtpClient class.

The MailMessage class represents the content of a mail message. The SmtpClient class transmits email to the SMTP host that you designate for mail delivery. You can create mail attachments using the Attachment class.

Return to top
Show: