Skip to main content
Dynamics 365 Community / Forums / Finance forum / How to Send an Image i...
Finance forum
Suggested answer

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

editSubscribe (2) ShareShare
ReportReport
Posted on by 80
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?
 
Attachments
  • TU1506 Profile Picture
    TU1506 80 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
    Kevin Xia 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
    Kevin Xia 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
    Anton Venter 5,018 Super User 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
    TU1506 80 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
    Anthony Blake 756 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:
     

Helpful resources

Quick Links

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,126 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,646 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Featured topics

Product updates

Dynamics 365 release plans