cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JakeGardner
Level: Powered On

Email with attachment from camera

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':""})} )
1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Email with attachment from camera

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

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Super User
Super User

Re: Email with attachment from camera

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

Community Support Team
Community Support Team

Re: Email with attachment from camera

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

 

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

Re: Email with attachment from camera

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?

PauloMachado
Level: Powered On

Re: Email with attachment from camera

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.

 

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,978)