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
0
Comments
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
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.
Senior Consultan
:-k
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog