HTML Mail with Codeunit 397

Hello, is there any way to handle mail with large text body (HTML or plain text) with codeunit 397? The mail body that is given as parameter to the codeunit is only 250 chars long. A modification in the codeunit that reads a text longer than 250 chars in smaller blocks doesn´t work. I don´t want to use any external program or OCX for this. Andreas

Hi! You could attach a HTML-Document (or any other file)! It’s a possibility to send larger texts/information that way … !? Regards, Jörg

Hello Jörg, I wanted to solve 2 things with one posting. The first thing ist to send plain-text mail automatically from the sales person who prints the delivery note to the person who must ship the products. The mail should contain customer-specific information about handling and shipping. This mail shouldn´t contain an attachment. The plain-text could be read in the preview-mode. The second thing ist to send HTML Mail Newsletter from the marketing-module. Somebody creates a new campaign, fills in customers and can send a newsletter to all email addresses (a loop will go thru all interessents and contactpersons in this campaign and call codeunit 397 with the email addresses). The second thing I can solve by an external program. The first thing I want to solve without any external program or OCX. It should run on every station without installing any program. Andreas

Hi again! Hmm … I don’t think that there is a chance to do that without “externel components” like an OCX or (Outlook)Automation, as far as CU397 limits the body to a plain text of 250 chars … [B)] Small chance: The “MAPIHandler” CU397 supports the Method “AddBodyText”, maybe you could use it to create larger body-texts …haven’t tried … Jörg

Hello Jörg, thank You for your answers. I can’t find the AddBodyText Method. Now I will solve the newsletter-problem with an external program that connexts to the database with cfront. This is more flexible I think. Andreas

Hello, I did this for a client awhile ago. Copy NewMessage to a function called NewMessageLog. Change the Body parameter to an array of 4. Then set Body using the code below. MAPIHandler.Body := Body[1] + Body[2] + Body[3] + Body[4];

“Hmm … I don’t think that there is a chance to do that without “externel components” like an OCX or (Outlook)Automation, as far as CU397 limits the body to a plain text of 250 chars … [B)]”

I have a similar problem?

Anyone know where the ocx control is registered, it’s file name or from where I can download the outlook ocs control?

Thanks ion advance.