Gets the Message Disposition Notification (MDN) object.
Syntax:
Returns
If successful return an object of type FREDI.mailMessage, otherwise NULL or empty if the operation failed.
Remarks
The mailDocument object consists of two messages: the subject message and the Message Disposition Notification (MDN). The MDN is the message sent back to the sender to acknowledge receipt of the subject message. When acknowledgment is enabled manually or by a request through the subject message, the MDN content is created showing errors, if any, from the subject document. If MDN is not enabled, the content of this object is empty.
Example
Dim oEdiDoc As Fredi.ediDocument
Dim oMailDocument As Fredi.mailDocument
Dim oMdnMessage As Fredi.mailMessage
' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument
' Get internet mail document object
Set oMailDocument = oEdiDoc.GetMailDocument
' Load EDI document normally.
oMailDocument.Load App.Path & "\SampleMail.TXT"
' Get MDN message.
Set oMdnMessage = oMailDocument.GetMDN
' Save MDN message.
oMdnMessage.Save App.Path & "\MDNOutput.TXT"
MsgBox "Done"
Samples