System.Web.Mail.MailAttachment: Constructor Members

The constructors of System.Web.Mail.MailAttachment are listed below. For a list of all members, see the MailAttachment Members list.

See Also: Inherited members from System.Object

Public Constructors

Initializes a new instance of the System.Web.Mail.MailAttachment class with the specified file name for the attachment. Sets the System.Text.Encoding property to MailEncoding.UUEncode by default. Recommended alternative: System.Net.Mail.

Initializes a new instance of the System.Web.Mail.MailAttachment class with the specified file name and encoding type for the attachment. Recommended alternative: System.Net.Mail.