TXT and HTML attachments

MIME enhanced email can have two alternative bodies displayed based on the preferences of the recipient.

The first two files listed in the parameter Attachments are sent as alternative bodies.

KCM Core sends files listed in the Attachments parameter as alternative bodies based on the following rules:

  • If the name of the first attached file has the extension TXT and the second file has the extension HTML, KCM Core sends the first two attachments as alternative versions of the body of the MIME message. All additional files are sent as regular attachments.
  • If the name of the first attached file has the extension HTML and the second file has the extension TXT, KCM Core sends the first two attachments as alternative versions of the body of the MIME message. All additional files are sent as regular attachments.
  • If the name of the first attachment file has the extension TXT and the second file does not have the extension HTML, KCM Core sends the first attachment as the body of the MIME message. All additional files are sent as regular attachments.