Framework EDI Reference. Methods and Properties
mailContentType.SubType

Sets or gets the subtype value in the “Content-Type” header.

Syntax:

Example:

Dim oEdiDoc As Fredi.ediDocument
Dim oMailDocument As Fredi.mailDocument
Dim oSubjMsg As Fredi.mailMessage
Dim oContentType As Fredi.mailContentType
Dim oParameters As Fredi.mailParameters

' 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 subject message.
Set oSubjMsg = oMailDocument.GetMessage

' Get content type header.
Set oContentType = oSubjMsg.GetContentType

' Get the media type in the "Content-Type" header.
Debug.Print "SubType: " & oContentType.SubType

' Change the media type in the "Content-Type" header.
oContentType.SubType = "plain"

oMailDocument.Save App.Path & "\Output.TXT"

MsgBox "Done"

Samples