New Line CHaracter in Mail CodeUnit 397

slowhandfanslowhandfan Member Posts: 56
My predecessor wrote a routine to print up to 99 sales lines with some headings and trailers on an e-mail for our customer card. He changed the BODY to have 99 occurences, and formats each line in the body as he wants it to appear on the e-mail. He feeds the lines into MAPI like this


MAPIHandler.Body := Body[1];
MAPIHandler.AddBodyText(' ');
REPEAT
BEGIN
MAPIHandler.AddBodyText(Body);
i := i+1;
END;
UNTIL i = 98;

It works great...

Unfortuatley MAPI is not goign to worek on the new server I just installed. My code look like


BSTRConverterBody.AppendNextStringPortion(Body[1]);
i := 2;
REPEAT
BEGIN
BSTRConverterBody.ResetBSTRCursor;
BSTRConverterBody.AppendNextStringPortion(Body);
i := i+1;
END;
UNTIL i = 98;

//END;
OSendMail.Body := BSTRConverterBody;



When it goes to the e-mail, my code strings everythign togethjer (like it does not know that new line or carriage control even exists.........

Does anyone know how to as new line character ?

Comments

Sign In or Register to comment.