Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Inserting red text into SMTP Mail Body

(0) ShareShare
ReportReport
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

*This post is locked for comments

  • Verified answer
    TeddyH Profile Picture
    TeddyH 12,868 Super User 2024 Season 1 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,419 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,492 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans