There should be an option in CPSSubscriptions to select the mime type of
outgoing messages rendered through CPSDocuments (e.g. text/plain, text/html,
text/xml, multipart/mixed, etc... ).
use cases are:
- some users only read text/plain messages (text-based mail readers)
- for security reasons: it is possible to embed malicious javascript code /
activeX in text/html documents.
- some systems need to process messages and work best with text/xml (automatic
registration, etc..)
- use multipart/mixed for attachments
possible implementation ideas:
- Associate a mime type to document layouts so that CPSSubcriptions can choose
between different layouts depending on the preferred mime type (useful for XML
layouts).
- run a portal transform on the document to generate a message in the preferred
mime type and send the message in the right format.
...