Framework EDI Reference. Methods and Properties
mailDocument. GetMailString

Gets the string content of the subject message in the document.

Syntax:

Returns

If successful, a string is returned representing the entire message.  If the message is empty or an error is encountered, the string returned is empty.

Remarks

The string returned is the output of the entire contents of the message, which consists of:

The mailDocument object consists of two top level messages: subject message and the Message Disposition Message (MDN).  The string is retrieved only from the subject message.

Example

Dim oEdiDoc As Fredi.ediDocument
Dim oMailDocument As Fredi.mailDocument
Dim sMessage As String

' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument

' Get internet mail document object
Set oMailDocument = oEdiDoc.GetMailDocument

' Load the mail document
oMailDocument.Load App.Path & "\SampleMail.TXT"

' Get string representing message document.
sMessage = oMailDocument.GetMailString

MsgBox sMessage

Samples