Email Formating

mercurycubemercurycube Member Posts: 6
Hi,

I managed to send emails from Codeunit 397. By the way, thanks for the good information on how to do it.

What I want to ask is, the message body in the NewMessage function in codeunit 397 is 260 char long. Can it get longer? Maybe I can alter the Codeunit to accept longer strings?

Another Question is how can I format an email on multiple lines. I saw a function in the codeunit 397 that's named 'AddBodyLine' but really don'ty know how to use it.

Any help appreciated.

Thanks
Ben

Comments

  • AlbertvhAlbertvh Member Posts: 516
    Hi Ben,

    You would have to make changes to the codeunit, however I have used the addbody to do multiple lines. Just use that function.
    eg Mail.AddBodyLine('Hello');
    Mail.AddBodyLine('World');
    You will have 2 lines in your mail.

    Hope this helps.

    Albert
  • darshanmdarshanm Member Posts: 280
    Hi,

    I am also facing the same problem.

    I am using newmessage() function to send the mail, But
    I can not format the body of the email.

    Please let me know how to use Mail.AddBodyLine()
    fnction.
    Darshan Mungekar
    Senior Consultan
  • WaldoWaldo Member Posts: 3,412
    Just every time you call "AddBodyLine", there will be line added to the body of your mail. What more is there to say?

    :-k

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
Sign In or Register to comment.