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.
Check out new user group experience and if you are a leader please create your group
Did you miss the call?? Check out the Power Apps Community Call here!
See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.
User | Count |
---|---|
271 | |
254 | |
87 | |
39 | |
34 |
User | Count |
---|---|
349 | |
262 | |
130 | |
68 | |
48 |