Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Answered

Inserting red text into SMTP Mail Body

Posted on by Microsoft Employee

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

  • Verified answer
    TeddyH Profile Picture
    TeddyH 12,861 Moderator 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,570 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,683 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans