Adds an attachment to a message.

Namespace: Jscape.Email
Assembly: 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
Attachment attachment = new Attachment("file2attach.gif");
message.AddAttachment(attachment);

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

See Also