DotNetOpenMail 0.5.7 (beta)

FileAttachment Constructor (FileInfo, String)

Create a new File attachment with a contentid from a FileInfo object. The contentid will be used to refer to this attachment in another mime part of the email.

[Visual Basic]
Public Sub New( _ 
   ByVal fileinfo As FileInfo, _ 
   ByVal contentid As String _ 
)
[C#]
public FileAttachment(
   FileInfo fileinfo,
   string contentid
);
[C++]
public: FileAttachment(
   FileInfo* fileinfo,
   String* contentid
);
[JScript]
public function FileAttachment(
   FileInfo fileinfo,
   String contentid
);

Parameters

fileinfo
A fileinfo object which points to a local file.
contentid
the content id value

See Also

FileAttachment Class | DotNetOpenMail Namespace | FileAttachment Constructor Overload List