MailMill .NET Class Library

MailAttachment.Name Property

Gets or sets the attachment file name.

public string Name {get; set;}

Remarks

The Name property is not checked by MailMill. It is up to you to enter a valid file name.

Example

This sample shows how to modify an attachment name.

MailAttachment oAttachment = new MailAttachment();
oAttachment.Load(@"c:\documentations\mailmill_help.chm");
oAttachment.Name = "MailMill Help.chm";

See Also

MailAttachment Class | MailMill Namespace