TXT and HTML, alternative bodies

MIME enhanced e-mail can have two alternative bodies which are displayed based on the preferences of the recipient, the client.

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

ITP/Server will send files listed in the Attachments parameter as alternative bodies based on the following rules:

  1. If the name of the first attached file has the extension .TXT and the second file has the extension .HTML, then ITP/Server will send the first two attachments as alternative versions of the body of the MIME message. All additional files are sent as regular attachments.
  2. If the name of the first attached file ends with the extension .HTML and the second file ends with the extension .TXT, then ITP/Server will send the first two attachments as alternative versions of the body of the MIME message. All additional files are sent as regular attachments.
  3. If the name of the first attachment file has the extension .TXT and the second file does not have the extension .HTML, then ITP/Server will send the first attachment as the body of the MIME message. All additional files are sent as regular attachments.