HTML Email templates

Hi all,

I have a series of complex-graphics email designs that I have saved as PNG images. I want to be able to insert dynamic text from Contact records ‘into’ the images to personalize (I really only want recipient first name and company versus a bunch of fields) and then send to recipients selected through advanced find using the enhanced email editor in D365 Sales.

Important to be clear, I mean the email editor in the Sales module. NOT the Customer Insights-Journeys module that is painfully expensive :smirk:.

I can convert the images to Base64 (using a site like Image to Base64 | Base64 Encode | Base64 Converter | Base64), which can be inserted in the HTML in a template. According to a couple of the public AI’s (particularly ChatGPT in this case), it should be possible to combine the Base64 spaghetti code for the image with an HTML “overlay”. The “overlay” would have the dynamic text placeholders/tags in it to personalize the Base64 encoded image.

My questions:

  1. Most important - will this actually WORK?
  2. Do I need the CSS to be separate (so, NOT inline)? If so, do I just bring the CSS in using a web resources solution?
  3. Should I also be loading the images themselves as web resources?
  4. If I need to load the CSS and/or images as web resources, how do I reference them in the HTML “overlay”?
  5. Any other “gotchas” with the idea?

I’m attaching one of the designs in PNG for reference.

Thank you!