Search code examples
lotus-noteslotus-domino

When generating HTML email using MIME, can attachments be displayed in the Lotus Notes email body?


I've created a html formatted email containing a table and want attachments to appear in rows in the table. I can't manage to get the attachments to appear in the body of the email at all, instead they come through (in our Lotus Notes 8.5.3 client) as attachments all grouped in the header under the attachment twistie.

Is there any way for the attachments to display in the body of the email instead of the header?

(Updated Jan 20, 2014) For reference, I looked for sample methods for adding attachments. Mark Leusink here and Tony McGuckin here posted great snippets for building HTML/MIME emails, so I used these as a starting point, but couldn't find anything to get the attachment into the body. Stephan has clarified why that is in his response below.


Solution

  • Mime doesn't contain attachments in message bodies, so they won't show up. However with a little trickery you can get what you want:

    • add another attachment containing an icon to be shown for the attachment. One generic or one each
      • in your table construct a href followed by img src pointing to image and attachment
    • you can read more about the URL format here

    http://en.m.wikipedia.org/wiki/MIME Bonus track: there is a notes item to stop attachments to be shown (can recall which one) If you smuggle that in as header...