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)

Increasing Font Size

(0) ShareShare
ReportReport
Posted on by

When creating an email using the SMTP Mail Code Unit I Have this function which crerates the email. How can I use this and HTML to increase the font size on the email created, if possible. 

I've not done HTML before but I had a little go as an example..


CLEAR(recEmail);

recEmail."Email No." := strEmailNo;
recEmail."Email Marker" := recEmail."Email Marker"::Line;
recEmail."Email Line" := ('<p> font-size: 4.0em;' + strLine + '</p>');
recEmail."Email Line Col 2" := strLine2;
recEmail."Email Table Start" := blnTableStart;
recEmail.INSERT(TRUE);

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Suresh Kulla Profile Picture
    50,245 Super User 2025 Season 2 on at

    Check this link you need to embed you text in the HTML Tags, there is an example or screenshot in the below blog

    www.dynamics101.com/sending-customized-emails-dynamics-nav

  • Verified answer
    Nareshwar Raju Vaneshwar Profile Picture
    5,596 on at

    Hi,

    You can use something like this though.

    recEmail."Email Line" := ('<p style="font-size:160%;">' + strLine + '</p>');

    This will be the HTML references:

    <h1 style="font-size:300%;">This is a heading</h1>

    <p style="font-size:160%;">This is a paragraph.</p>

    Hope it helps.

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)

#1
HoangNam Profile Picture

HoangNam 7

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans