Create an email with a body has more than 1000 characters

foronavisionforonavision Member Posts: 79
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!!!

Comments

  • tinoruijstinoruijs Member Posts: 1,226
    And this doesn't work?
    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
Sign In or Register to comment.