DotNetOpenMail 0.5.7 (beta)

FileAttachment Constructor (String, String)

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

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

Parameters

content
The contents of the file
contentid
the content id value

See Also

FileAttachment Class | DotNetOpenMail Namespace | FileAttachment Constructor Overload List