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 _ 
public FileAttachment(
   FileInfo fileinfo,
   string contentid
public: FileAttachment(
   FileInfo* fileinfo,
   String* contentid
public function FileAttachment(
   FileInfo fileinfo,
   String contentid


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

See Also

FileAttachment Class | DotNetOpenMail Namespace | FileAttachment Constructor Overload List