View member feedback to this tip.
Editor's Note: This tip only works in ND6. This code uses the NotesMIMEEntity class, so it only works with Release 5.0.2 and above.
Have you wondered how e-marketing campaigns create those swanky advertisements using HTML? Some folks think the only way to do that in Notes is to store the form in the document or insert a bunch of images. However, that cannot be done programmatically, and stored forms and images make for large file sizes. Here's how you can create awesome HTML e-mails in Notes by rending the message body as MIME instead of Rich Text.
Code
Copy the following code into a LotusScript agent. Be sure to change the sendto or the e-mail will go to me. Run the agent and see how the HTML appears. Update the code as needed. When I use the code I create subs for writing the stylesheet and all the content. Have fun!
MEMBER FEEDBACK TO THIS TIP
Very good find, it's just what I was looking for, but it doesn't work on R5. The NotesMIMEEntry class doesn't exist in R5.
-- Alain G.
****************************************************
This is much better solution for R6 than the quirky work-arounds that were necessary in R5. I have always preferred HTML to Rich Text formatting. This tip makes it easy. Great tip!
-- Chris C.
****************************************************
Excellent tip! I've been looking at HTML e-mails and you just saved me quite a bit of trouble.
-- Paul M.
***************************************...
To continue reading for free, register below or login
To read more you must become a member of SearchDomino.com
');
// -->

*************
Angie, you must have been listening to my last conversation! I now have a REAL reason to upgrade to ND6+. Works like a dream.
--Ralph R.
****************************************************
In this tip Angie has this line:
I did a Google search and did not find any information on this. Is this a standard to prevent out of office agents from sending an e-mail?
Also, I send out HTML e-mails by creating a database that has "control" documents. In my LotusScript agent I copy the body of the control document (which has the message I want to send). The Domino 6 router (R5 does not do this) will convert the Notes Rich Text formatting to HTML and send out a MIME message. This way you do not have to write the HTML/MIME and the plain text. Domino sends out a message with both the MIME/HTML and plain text and the receiving mail server chooses which version to use.
-- Howard G.
******************************************
This article just made me look fantastic to my new (2 weeks) boss.
Thank you so much!
Michael K.
******************************************
Is there a way to extract the raw HTML from the Body field of a NotesDocument? For example, If I receive an e-mail from another domain, such as Yahoo!,which is stored in the nsf file in HTML format, is there a way to extract this raw HTML out using LotusScript? Also, is there a way to convert RichText into HTML?
Abhijeet P.
Do you have comments of your own? Let us know.