Skip to main content

Notifications

Announcements

No record found.

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++

Posted on by 91
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
    TU1506 91 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 18,524 Super User 2024 Season 2 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 91 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 1,957 Super User 2024 Season 2 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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans