Sets or gets the option for generating a Message Disposition Notification (MDN).
Syntax:
<True/False> = object.EnableAcknowledgment
object. EnableAcknowledgment = <True/False>
Remarks
When this option is enabled, an MDN is generated regardless of whether the message loaded had requested one or not. The default value is FALSE.
Example
Dim oEdiDoc As Fredi.ediDocument
Dim oMailDocument As Fredi.mailDocument
Dim oMDN As Fredi.mailMessage
' Create instance of Framework EDI.
Set oEdiDoc = New Fredi.ediDocument
' Get internet mail document object
Set oMailDocument = oEdiDoc.GetMailDocument
' Enable MDN generation
oMailDocument.EnableAcknowledgment = True
' Load the mail document.
oMailDocument.Load App.Path & "\SampleMail.TXT"
' Get the MDN object which is also a message.
Set oMDN = oMailDocument.GetMDN
oMDN.Save App.Path & "\MdnOutput.TXT"
MsgBox "Done"
Samples