Gets the string representing the entire message.
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:
- Headers.
- Body.
- Sub messages/Body parts.
Example
Dim oEdiDoc As Fredi.ediDocument
Dim oMailDocument As Fredi.mailDocument
Dim oMessage As Fredi.mailMessage
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 top level message of the document.
Set oMessage = oMailDocument.GetMessage
sMessage = oMessage.GetMsgString
MsgBox sMessage
Samples