This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Mar 27, 2016, 11:26 AM
4 Posts

Given a NotesDocument how do I get the full MIME text

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 1

I am writing a lotus domino program in C#. I can get the NotesDocuments OK, but how do I get the full MIME text? What I plan to do is convert these emails to HTML using MimeKit. These will then be posted to my website and users will be able to browse these emails on a webpage.

Mar 28, 2016, 1:59 PM
8 Posts
First, consult the API reference.
If you haven't already downloaded the C API Toolkit, here's a link for the 9.01 version:

https://www-01.ibm.com/marketing/iwm/tnd/preconfig.jsp?id=2012-10-08+17%3A31%3A39.593874R&S_TACT=104CBW71&S_CMP=

(There's no charge for the toolkit, but you will have to supply an email address to register with the site.  The site will also ask a couple of 'demographic' questions about your work site & employer and you'll have to agree to the license terms.)


After wading through all of registration, you'll choose the toolkit for a given platform; e.g., Windows or Mac or Linux, etc.


Using the Windows toolkit as an example:

When you've unzipped the toolkit (by default, into the notesapi901 directory), find the 'doc' subdirectory and open the 'api901ref.nsf' database with the Notes client.  This is the '
IBM C Application Programming Interface (API) for Domino and Notes 9.0.1 Reference' and it documents all of the Toolkit APIs.  For example, view all of the database documents by Category (via the navigator pane on the left) and expand the MIME category for the APIs used to manipulate MIME format Notes documents.

Having said all that -- I can't say what you should do without knowing exactly what you're trying to do.  If you have the API Toolkit, take a look in the samples/mail/parseMMMsg folder.  It has a pretty good sample program for reading a MIME message and getting its data (which would include any text/html parts).


If you need to convert Notes Rich Text to HTML, see the samples/html directory; it has sample programs for accomplishing this.  (There are also higher-level MIME APIs for converting a Notes Rich Text 'message' to MIME/HTML; see the API references for those.)

Good luck.  Take two and hit to right.

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal