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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Office 365 Send Email ...
Power Apps
Unanswered

Office 365 Send Email HTML Attachement

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Good morning all!!

I have built an app thru PowerApps, with the HTML builder, and saved the HTML created doc to OneDrive, but also wanted to attach it to an email.

I wrote the formula... and it looked okay, no errors, but when I ran it, I got a 'Runtime Error'., stating

<!HTML PUBLIC'-//W3C//DTD HTML 4.01//EN""http://w3.org/TR/html4/strict.dtd">....

When I went to that http, it gave me verbiage about HTML4 and HTML5. 

 

 

EEK! Any ideas?

 

Thanks,

Bobbi

 

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

    Could you please share a bit more about your scenario?

    How do you type your HTML content within your app? Using HTML text control?

    Further, how do you save the HTML content into a file, and store it within OneDrive folder? via Microsoft Flow? Do you type the formula you provided within the HTML text control?

     

    If you type the formula you provided within the HTML text control, I think there is something wrong with it. I have made a test on my side, please take a try with the following workaround:3.JPG

    Set the HtmlText property of the HTML text control to following:

    "<!HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://w3.org/TR/html4/strict.dtd'>
     <table border='1'>
     <tr>
     <td>TaskName</td>
     <td>Executor</td>
     </tr>
     <tr>
     <td>PowerAppss Issue Report</td>
     <td>Kris Dai</td>
     </tr>
    
     </table>
     "

    On your side, you should type:

    "<!HTML PUBLIC '-//W3C//DTD HTML 4.01//EN' 'http://w3.org/TR/html4/strict.dtd'>" /* <-- The URL should be wrapped with single quotes */

    If you want to send an email with HTML file as an attachment, I think there is no direct or easy way to achieve your needs in PowerApps currently. Based on your needs, I think the combination of PowerApps and Microsoft Flow could achieve your needs.

    Please check and see if the following videos would help in your scenario:

    https://www.youtube.com/watch?v=IhE0-HumNNo&feature=youtu.be

    https://www.youtube.com/watch?v=2rfAQe1kK8M

     

    Best regards,

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 432

#2
Valantis Profile Picture

Valantis 362

#3
timl Profile Picture

timl 337 Super User 2026 Season 1

Last 30 days Overall leaderboard