Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Show HTML in Sent CRM Email (Custom Workflow Activity) in Email Provider

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

When I attempt to use Custom Workflow Activity code to send an email on custom entity type field change, it creates an email (using a template created in CRM), then sends it to the Activity Party - AddressUsed specified.  

The problem is, when I create the email in the code, then go into CRM to check it out, it renders the HTML correctly (showing an image which is what I need to display in GMAIL or directed email service provider), but only shows plain text in the sent email in GMAIL.  See screen shots below:

CRM:

4263.CRM.JPG

GMAIL:

8686.GMAIL.JPG

Does anyone know how to include HTML styling/images in the Email.Description of Custom Workflow Activity-triggered code creating the email record, so that it shows correctly in the destination email?  Seems it keeps converting it to plain text, also shows the image as a hyperlink (not desired result).

Thanks,

-Tom

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Show HTML in Sent CRM Email (Custom Workflow Activity) in Email Provider

    We are using EWS Exchange to send out the emails from the Email Server Profile from within CRM.

    When I try to manually send an email to myself by-passing the Custom Workflow Activity code that sends the email, it still appears in GMAIL the same, with no HTML formatting.  Seems the HTML is being stripped away somewhere in the process, probbaly on the GMAIL side.  In GMAIL on the receieved email, it does show a "?" for the icon of the sender, as being not authenticated.

    But I have sent emails to GMAIL before from an un-authenticated sender account and it rendered the HTML just fine.

    I am just not sure what is happening here.

    -Tom

  • Suggested answer
    Radu Chiribelea Profile Picture
    Radu Chiribelea 6,667 on at
    RE: Show HTML in Sent CRM Email (Custom Workflow Activity) in Email Provider

    Hi Tom,

    If the email is displayed correctly in CRM (with the proper html formatting) then this might be a configuration setting on the email server side.

    What email server are you using to send out the email? If you try to send the same email to you, does it work?

    With Server Side Synchronization configure with Exchange, the way CRM works, is to use the Exchange Web Services to generate a request towards exchange. In the request it sends the body as is (containing the HTML definition). I've seen situations in the past where the email server along the way (usually the receiving one) strips the email from the HTML formatting and displays the email as plain text. This usually can happen due to security restrictions, etc.

    Hope this helps.

    Radu

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,375 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans