DotNetOpenMail 0.5.7 (beta)

FileAttachment Constructor (Byte[], String)

Create a new file attachment from a byte array. The contentid will be used to refer to this attachment in another mime part of the email.

[Visual Basic]
Public Sub New( _ 
   ByVal bytes As Byte(), _ 
   ByVal contentid As String _ 
)
[C#]
public FileAttachment(
   byte[] bytes,
   string contentid
);
[C++]
public: FileAttachment(
   char bytes __gc[],
   String* contentid
);
[JScript]
public function FileAttachment(
   Byte[] bytes,
   String contentid
);

Parameters

bytes
An array of bytes
contentid
the content id value

See Also

FileAttachment Class | DotNetOpenMail Namespace | FileAttachment Constructor Overload List