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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to attach Html file in email body in AX 2012?

(0) ShareShare
ReportReport
Posted on by 180

Hi All,

In AX 2012, how can we send html file in email body rather than sending file as attachment in email?

I am trying to save an SSRS report in html format on a server location which is done successfully.

But I am unable to convert that html to string and attach in email body using MailMessage.set_Body() method.

Please help me to achieve this. Or please let me know if there is any other way to achieve the same.

Thanks!!!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    Hi Abhishek Chavda,

    Standard emailing uses html to format email message using placeholder that is passed to  mailer.htmlBody() so it should work for you as well. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
GiacomoRovai Profile Picture

GiacomoRovai 4

#3
Douglas Noel Profile Picture

Douglas Noel 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans