Creating a Email body in NAV 2016

MathanMathan Member Posts: 55
Hi everyone,

I would like to know if there is any other way to create an Email body template by getting the input from the user, apart from importing a HTML file which contains the Email body template. I have hard coded it like this for using it in multilanguage.

BodyBlob.Blob.CREATEOUTSTREAM(BodyStream);
CR13 := 13;
CR10 := 10;
BodyStream.WRITETEXT(Line1+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(''+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line2+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line3+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(''+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line4+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line5+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(''+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line7+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line8+ RefNo + FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(''+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line9+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line10+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(''+ FORMAT(CR13)+ FORMAT(CR10));
BodyStream.WRITETEXT(Line11);

Where the line1 to line10 are text constants. In this case the Email body cannot be changed. But i am looking for a way to change it so the user will be able to change the Email body as they see fit. I have looked into Notification Templates 1510, which is not preferable because it uses HTML file to create the Template.

Can someone please throw a light on where should i look or what should i do? Any help is highly appreciated. Thanks in advance.

Mathan.

Answers

  • JuhlJuhl Member Posts: 724
    Use the Document-mailing system. It’s uses word document as template
    Follow me on my blog juhl.blog
Sign In or Register to comment.