Is there a way I send send an email with the camera.photo via Office365.SendEmail?
This is what I have so far, the photo does not come through when the email sends though.
Office365.SendEmail("xxx@xxx.com.au", "Clock In", "<b><font color=red></font></b>Clock in time: " & Text( Now(), "[$-en-US]dd/mm/yyyy hh:mm:ss" ) & Char(13) & "Location: " , {Attachments:Table({Name:"file1.jpg", ContentBytes:Camera1.Photo, '@odata.type':""})} )
Solved! Go to Solution.
Hi @JakeGardner,
Are you trying to send the email body with HTML text control? The formula should be:
Office365.SendEmail(inputTo.Text, inputSubject.Text, inputBody.Text, {Attachments:Table({Name:"file1.jpg", ContentBytes:Camera1.Photo, '@odata.type':""})})
For Html email reporting with tabular data, please refer to:
https://powerapps.microsoft.com/en-us/blog/html-email-reporting-with-tabular-data/
Regards,
Mona
Hi,
Maybe you should consider using Flow to send your email. Looks like easier to customize an email within Flow rather than PowerApps.
Théo
Hi @JakeGardner,
Are you trying to send the email body with HTML text control? The formula should be:
Office365.SendEmail(inputTo.Text, inputSubject.Text, inputBody.Text, {Attachments:Table({Name:"file1.jpg", ContentBytes:Camera1.Photo, '@odata.type':""})})
For Html email reporting with tabular data, please refer to:
https://powerapps.microsoft.com/en-us/blog/html-email-reporting-with-tabular-data/
Regards,
Mona
Hi,
Office365.SendEmail(
txt_to.Text,
txt_subject.Text,
txt_subject.Text,
{Attachments:Table({Name:"f.jpg", ContentBytes:C1.Photo, '@odata.type':""})}
)
This codes doesn't run. Where is the error?
Hi,
Work fine to me to attach one "jpg" file:
Office365.SendEmail(inputTo.Text, inputSubject.Text, inputBody.Text, {Attachments:Table({Name:"file1.jpg", ContentBytes:Camera1.Photo, '@odata.type':""})})
Now I'm trying to attach more than one "jpg" in the email but I can't find a way to...
Is this the correct way to attach more than one file in the email?
Thank You.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
185 | |
53 | |
41 | |
37 | |
31 |
User | Count |
---|---|
246 | |
75 | |
71 | |
69 | |
65 |