AddAttachment Method
Adds FileName as an attachment.
Syntax
[VB.NET] Public Sub AddAttachment(ByVal FileName As String)
[C#] public void AddAttachment(string fileName);
Remarks
This method adds the file name as an attachment, the full list of attachments is contained in the Attachments property.
Example (Adding an Attachment)
Control.AddAttachment(
"C:\file1.zip"
)
Control.AddAttachment(
"C:\file2.zip"
)
Control.Send()
Control.Attachments.Add(New nsoftware.IPWorks.FileAttachment(
"name"
,
"C:\file.txt"
))