System.Web.Mail.MailMessage.Attachments Property

Specifies the collection of attachments that are transmitted with the message. Recommended alternative: System.Net.Mail.

Syntax

public IList Attachments { get; }

Value

a IList

Remarks

New attachments can be added to the mail message by a call to Message.Attachments.Add(MyMailMessage). See SmtpMail.Send(string, string, string, string) for an example of System.Web.Mail.SmtpMail usage.

Requirements

Namespace: System.Web.Mail
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0