Processes a string representing a message.
Syntax:
Parameters:
Returns
If successful, returns 1; otherwise 0, if failed.
Remarks
LoadMailString begins processing the string representation of the entire contents, header and body, of the message. The string passed as a parameter is concatenated to an internal string used to build the entire string representation of the message, and then the entire string is processed as a subject message. If the message string is not large enough, the entire string can be passed as parameter, otherwise successive calls to PutMailMessage is required to build the message incrementally and then making the final call to LoadMailString to process it. When LoadMailString has successfully processed the internal string, the string is cleared.
For details on how the file is processed please see the Process method under the Remarks section.
Example
Dim oEdiDoc As Fredi.ediDocument
Dim oMailDocument As Fredi.mailDocument
Dim sMsg As String
' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument
' Get internet mail document object
Set oMailDocument = oEdiDoc.GetMailDocument
sMsg = "Date : 27 Aug 76 09:32 PDT" & vbCrLf
sMsg = sMsg & "From : Ken Davis <KDavis@This-Host.This-net>" & vbCrLf
sMsg = sMsg & "Subject : Re: The Syntax in the RFC" & vbCrLf
sMsg = sMsg & vbCrLf
sMsg = sMsg & "This is the body of this mail which must be separated from the" & vbCrLf
sMsg = sMsg & "headers by a NULL line." & vbCrLf
' Prepare to apply changes.
oMailDocument.LoadMailString sMsg
oMailDocument.Save App.Path & "\Output.TXT"
MsgBox "Done"
Samples