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

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Inserting red text into SMTP Mail Body

(0) ShareShare
ReportReport
Posted on by

Hi,

I am using the standard SMTP Mail Create function to send an email with the following text.

CLEAR(LcduSMTPMail);
        LcduSMTPMail.CreateMessage(
          LtxtConst003,
          LrecPendingCommsSetup."Sender Email Address",
         LrecPendingCommsSetup."CC Email Address",
          LrecPurchHeader."No.",
          STRSUBSTNO(LtxtConst002,LrecPurchLine."Document No.",LrecPurchHeader."Posting Description"),
          TRUE
          );

The body of the email 'LtxtConst002' is the following

The expected receipt date of Purchase Order %1 - %2   has now passed and the Purchase Order has not yet been receipted. Please could you review your order and if you have received your goods/services then you need to receipt the PO on the purchase portal/NAV as soon as possible.

I want to send the bold section in Red in the email. How would I do this?

Thanks

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,261 Super User 2025 Season 2 on at
    RE: Inserting red text into SMTP Mail Body

    Try

    The expected receipt date of <font color="red">Purchase Order %1 - %2</font> has now passed and the Purchase Order...

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Alexander Ermakov Profile Picture

Alexander Ermakov 2

#2
SC666 Profile Picture

SC666 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans