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 125
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?
 
  • TU1506 Profile Picture
    125 on at
    How to Send an Image in a mail thru x++
    Hi Kevin,
    No, issue is still unresolved.
    Docentric is an ISV and we are not using it. 
     
     
  • Kevin Xia Profile Picture
    Microsoft Employee on at
    How to Send an Image in a mail thru x++
    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
  • Suggested answer
    Kevin Xia Profile Picture
    Microsoft Employee on at
    How to Send an Image in a mail thru x++
    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
  • Suggested answer
    Anton Venter Profile Picture
    19,542 Super User 2025 Season 1 on at
    How to Send an Image in a mail thru x++
    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'>.
  • TU1506 Profile Picture
    125 on at
    How to Send an Image in a mail thru x++
    Hi Anthony Blake,
    I don't want to send image as an attachment . I want to send image as an embedded image.
     
    Thx
  • Anthony Blake Profile Picture
    2,339 Super User 2025 Season 1 on at
    How to Send an Image in a mail thru x++
    Martin previously posted a solution to attach any file type to an email:
     

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 293,025 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,837 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans