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 / Send a HTML mail and a...
Power Apps
Answered

Send a HTML mail and attachments

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all, hope you are fine i have a doubt about how can i send a mail with a HTML format and attachments.

This is the code that im using for the table

 

SubmitForm(Form2_1) ;;
Office365Outlook.SendEmailV2("Cesar.Larrea.Torres@dbschenker.com";"Ticket ID: " & Form2_1.LastSubmit.ID &" - "& Form2_1.LastSubmit.Title;
"
<html>
<head>
<style>
Table {
font-family:arial,sans-serif;
border-Bottom: 1px solid #ddd;
width: 90%;
border-collapse: collapse;
border-spacing: 5px;
}
td {
text-align: center;
padding: 15px;
border-bottom: 1px solid #ddd;
font-size: 12px;
border-collapse: collapse;
}
th {
text-align: center;
padding: 15px;
border-bottom: 1px solid #ddd;
font-size: 12px;
border-collapse: collapse;
}
</style>
</head>
<body>
<h3>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</h3>
<p>A continuacion se tiene un resumen del ticket generado: </a></p>
<table>
<tr>
<th>Problema</th>
<th>Descripcion</th>
<th>Area</th>
<th>Proyecto</th>
<th>Prioridad</th>
<th>Estatus</th>
</tr>"
&
"<tr>
<td>" & Form2_1.LastSubmit.Title & "</td>
<td>" & Form2_1.LastSubmit.'Descripcion del problema' & "</td>
<td>" & Form2_1.LastSubmit.Area.Value & "</td>
<td>" & Form2_1.LastSubmit.Proyecto.Value & "</td>
<td>" & Form2_1.LastSubmit.Prioridad.Value & "</td>
<td>" & Form2_1.LastSubmit.Status.Value & "</td>
</tr>";
{IsHtml: true ; Importance: "High"});;

Navigate(Dashboard;ScreenTransition.Fade) 

 


But the part where im having trobules is the next one:

{IsHtml: true ; Importance: "High"});;

I wanna add attachments to the mail so it can be send it with a image taked from the user. This is the code used for add attachments in other apps but this is the first one using the HTML format:

{Attachments:Table({Name:"SeeError.jpg", ContentBytes:UploadedImage1.Image, '@odata.type':""})}

Can you please help me to check if there is a way to send the email with the HTML format and the image taked from user?

Categories:
I have the same question (0)
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous To simplify things, I use variables to store the subject & body (HTML), and use the Attachment control to get the attachments from the user.

     

    Office365Outlook.SendEmailV2("person@email.com", varBodyText, varBodyText, {
    	From: "person@email.com",
    	Bcc: "person@email.com",
    	Attachments: AddColumns(RenameColumns(ctrAttachmentControl.Attachments, "Value", "ContentBytes"), "@odata.type", ""),
    	Importance: "High"
    })

     

    I don't think there is a property IsHtml

    CNT_0-1622735035810.png

     

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @Anonymous Did it work for you?

     

    Please remember to give a 👍 and accept the solution as it will help others in the future.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Here is the answer for the community:

    https://www.youtube.com/watch?v=6xTeHbieh3w

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard