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 / Email V3: Sending Atta...
Power Apps
Answered

Email V3: Sending Attachments

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello! I have an attachment control with images (.jpg) which looks like the following:

gjals98_0-1645101785278.png


At pressing the "Send" button, I would like to send an email with the attachments using the "Mail" Connector (since the Outlook 365 Connector is blocked in my environment). The code that I wrote looks like this:

 

gjals98_1-1645102436997.png


As soon as I enter the line: {files:AddColumns(RenameColumns(DataCardValue18.Attachments, "Value", "ContentBytes"), "@odata.type", "")}, it gives me an error, saying: "Incompatible type. The 'files' column in the data source you´re updating expects a Blob type and you´re using a 'Table' type.".

 

How can I achieve this? I would to send the images with the "Mail" connector without using Flow (like the Office 365 Outlook connector...) Thank you!

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    37,160 Super User 2026 Season 1 on at

    Hi @Anonymous 

    The syntax you would use looks like this:

    Mail.SendEmailV3("recipient@emil.com", 
     "Enter the email title here", 
     "Enter your email message here",
     false,
     {
     files:First(DataCardValue18.Attachments).Value,
     filenames:First(DataCardValue18.Attachments).DisplayName
     }
    )

    Note that the mail connector supports the attachment of a single file only. There are more details in my post here.

    http://powerappsguide.com/blog/post/when-and-how-to-use-mail-connector

     

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

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 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard