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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

How to Send an Image in a mail thru x++

(2) ShareShare
ReportReport
Posted on by 147
Hi,
I need some help in sending an image in a mail thru x++ in D365FO.
Thru Email Template in Organization module ,  i can set subject & body of the email but not able to attach image.
Any idea how to achieve this?
 
I have the same question (0)
  • Anthony Blake Profile Picture
    2,926 Super User 2025 Season 2 on at
    Martin previously posted a solution to attach any file type to an email:
     
  • TU1506 Profile Picture
    147 on at
    Hi Anthony Blake,
    I don't want to send image as an attachment . I want to send image as an embedded image.
     
    Thx
  • Suggested answer
    Anton Venter Profile Picture
    20,345 Super User 2025 Season 2 on at
    This is a tricky one because different mail providers have different rules about embedded images. There's a lot of information about this online if you search for "embed image in email body". However, if I remember correctly, one method that may work in this case, is to have the image publicly available somewhere on the internet, and then add it the template with the HTML tag <img src='https://publiclocation/yourimage.svg'>.
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    Hi,
    You can refer to this official documentation: Add dynamic content to email messages - Dynamics 365 Customer Insights | Microsoft LearnYou can use a dynamic expression to define the source URL for image elements. Or you can refer to this blog post: ax.docentric.com, which mentions some ways to embed images in emails, including the methods mentioned by Anthony. In general, there are 3 ways to embed images in your emails:
    • Inline embedded CID images
    • Inline embedded Base64 encoded images
    • Linked images (specified via URLs)
    Best regards,
    Kevin
  • Kevin Xia Profile Picture
    Microsoft Employee on at
    Hi,
    Has your problem been solved? If so, you can mark the thread as verified so that other users of the forum can view the post.
    Best regards,
    Kevin
  • TU1506 Profile Picture
    147 on at
    Hi Kevin,
    No, issue is still unresolved.
    Docentric is an ISV and we are not using it. 
     
     

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans