I need send a mail in Navision 4.0 (using codeunit 397), but the body would have more than 1000 characters. I try with addbodyline function, but i don't know to use this function
I have the following code:
mail.NewMessage(ConfFab."Envio Mail Planificacion",'', Asunto, Body,'',FALSE);
OPsCreadas.RESET;
IF OPsCreadas.FIND ('-') THEN
REPEAT
mail.AddBodyline (OPsCreadas.Nombre + ' ............ ' + FORMAT(OPsCreadas.Cantidad));
UNTIL OPsCreadas.NEXT = 0;
Thanks a lot and regards!!!
0
Comments
The text can maximum be 260 characters for AddBodyLine.
And you have to use mail.send; to send the mail.
Tino Ruijs
Microsoft Dynamics NAV specialist