संपादित करें

इसके माध्यम से साझा किया गया


System.Net.Mail Namespace

Contains classes used to send electronic mail to a Simple Mail Transfer Protocol (SMTP) server for delivery.

Classes

AlternateView

Represents the format to view an email message.

AlternateViewCollection

Represents a collection of AlternateView objects.

Attachment

Represents an attachment to an email.

AttachmentBase

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

AttachmentCollection

Stores attachments to be sent as part of an email message.

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 email message.

MailAddress

Represents the address of an electronic mail sender or recipient.

MailAddressCollection

Store email addresses that are associated with an email message.

MailMessage

Represents an email message that can be sent using the SmtpClient class.

SmtpClient

Allows applications to send email by using the Simple Mail Transfer Protocol (SMTP). The SmtpClient type is obsolete on some platforms and not recommended on others; for more information, see the Remarks section.

SmtpException

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

SmtpFailedRecipientException

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

SmtpFailedRecipientsException

The exception that is thrown when email is sent using an 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.

Enums

DeliveryNotificationOptions

Describes the delivery notification options for email.

MailPriority

Specifies the priority of a MailMessage.

SmtpAccess

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

SmtpDeliveryFormat

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

SmtpDeliveryMethod

Specifies how email messages are delivered.

SmtpStatusCode

Specifies the outcome of sending email by using the SmtpClient class.

Delegates

SendCompletedEventHandler

Represents the method that will handle the SendCompleted event.

Remarks

The MailMessage class represents the content of a mail message. You can create mail attachments using the Attachment class.

See also