web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

HTML Email Body

(0) ShareShare
ReportReport
Posted on by

Hi NAV experts,

How to modify the current email body template to look like HTML format?

I have read on many posts in the forum that making HTML format of email body will require heavy customisation.

All I need to do for the email body is as below:

- Centre aligned the body

- Put the company logo as the header

- Make all the font to be grey in colour and certain font

- Put a footer which is a generic company email, facebook and twitter page.

Is it possible?

Thanks

Susy

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Maneesha Profile Picture
    5,891 on at

    Hi Susy K ,

    Refer follow link this will help you to solve the issue

    www.mapilab.com/.../insert-html-into-outlook-email-message

  • Verified answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Susy,

    Yes its possible you just need to use appropriate HTML tags when adding the body. For example check the below link where Saurav explained how to insert logo into the email.

    https://community.dynamics.com/nav/b/sauravdhyanimicrosoftdynamicsnav/archive/2015/08/10/nav-2015-use-email-with-company-logo-and-url

  • Verified answer
    manish.yadav Profile Picture
    1,893 on at

    Hello Dear,

    I have write a some tips to modify the mail body using the HTML. I have tried by own.

    Alignment In HTML.:

    <td align="left">

    <td align="right">

    <td align="center">

    <td align="justify">

    <td align="char">

    Add two row or columns:

    <th rowspan="2"></th>

    <th colspan="3"></th>

    Text bold in HTML:

    Mail.AppendBody('<b>From</b>');

    Using colour in TExt:

    Mail.AppendBody('<th><p style='color:darkblue;'>SO No.</p></th>');

    Mail.AppendBody('<th><p style='color:Green;'>SO Date</p></th>');

    Mail.AppendBody('<th><p style='color:Red;'>SO Due Date</p></th>');

    Mail.AppendBody('<th><p style='color:Maroon;'>SO Invoice Date</p></th>');

    If You want to design the columns as per requirement, You can try like that:

    Mail.AppendBody('<th align="right" colspan="3">Opening Balance</th><th colspan="3">'+FORMAT

    (OpeningDRBal)+'</th>');

    Draw A line in Mail Body:

    Mail.AppendBody('<HR>');

    Create A one blank space:

    Mail.AppendBody('<br>');

    Create A two blank space:

    Mail.AppendBody('<br><br>');

  • Community Member Profile Picture
    on at

    Thank you Suresh & MKY,

    Now, where do I put these codes in?

    Do I add it to the Report that is developed to run the email job, or is it replacing Codeunit 400 SMTP Email?

    Regards,

    Susy

  • manish.yadav Profile Picture
    1,893 on at

    Hello Dear,

    I have provided you a some hint/syntax to update your already written code. Now, You can use these syntaxces to update the code. If you still unable to do that please send the the some lines of your code, I will provide you a some idea.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans