Framework EDI Reference. Methods and Properties
mailMessage. EncodingBase64

Enables/disables base 64 encoding on a message.

Syntax:

 

Remarks:

This property sets the message for base64 encoding by setting the message header Content-Transfer-Encoding to the value "base64".

Dim oSubjMsg As Fredi.mailMessage
:
' The following calls are equivalent when the message is to be encoded to base64.
'
oSubjMsg.EncodingBase64 = True
oSubjMsg.HeaderFieldValue("Content-Transfer-Encoding") = "base64"

Example:

Dim oMailDocument As Fredi.mailDocument
Dim oSubjMsg As Fredi.mailMessage

Set oMailDocument = oEdiDoc.GetMailDocument
Set oSubjMsg = oMailDocument.GetMessage

oSubjMsg.Import(sPath)

oSubjMsg.HeaderFieldValue("AS2-Version") = "1.0"
oSubjMsg.HeaderFieldValue("AS2-To") = "abc@example.com"
oSubjMsg.HeaderFieldValue("AS2-From") = "myMail@example.com"

' Encode the message to base 64
oSubjMsg.EncodingBase64 = True

' Request that an MDN be returned
oSubjMsg.RequestSignedMDN()