Adds an attachment to a message.
Namespace: Jscape.EmailAssembly: Jscape.Email (in Jscape.Email.dll) Version: 2.4.5.0
Syntax
C# |
---|
public void AddAttachment( Attachment attachment ) |
Visual Basic |
---|
Public Sub AddAttachment ( _ attachment As Attachment _ ) |
Visual C++ |
---|
public: void AddAttachment( Attachment^ attachment ) |
Parameters
- attachment
- Type: Jscape.Email..::..Attachment
The attachment to add.
Examples
This example adds an attachment to a message.
CopyMime AddAttachment
CopyMime AddAttachment

Attachment attachment = new Attachment("file2attach.gif"); message.AddAttachment(attachment);

Dim att As Attachment = New Attachment("file2attach.gif") message.AddAttachment(attachment)