Framework EDI Reference. Methods and Properties
mailDocument. Property

Sets or gets a property of the mailDocument interface.

Syntax:

Parameters:

Returns

Returns a variant data type containing the value of the property type requested.

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

' Modify Reporting-UA property
oMailDocument.Property(Property_Reporting_UA) = "FREDI;Reporting-UA"

' Load EDI document normally.
oMailDocument.Load App.Path & "\SampleMail.TXT"

' Get message disposition notification.
Set oMDN = oMailDocument.GetMDN

' Save MDN.
oMDN.Save App.Path & "\MdnOutput.TXT"

MsgBox "Done"

Samples