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

Send PDF Attachment from PDF reader directly to email

Hello,

 

Is that possible to do something for send PDF attachment directly to email?

 

I'm using the PDFreader template, all the data comes from OneDrive and Excel. In addition to showing the files in the app I would like you to have the option to send the files directly to an email

 

Thank you in advance

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Send PDF Attachment from PDF reader directly to email

Hi @T1agow ,

Could you please share a bit more about your scenario?

Do you want to send an email along with the PDF as the attachment within your template app?

 

Based on the needs that you mentioned, I have made a test on my side, please take a try with the following workaround:3.JPG

Firstly, you need to add a Office 365 Outlook connection data source within your app.

Within your PDFGallery, add a "Email" icon as above, then set the OnSelect property of the "Email" icon to following:

Office365.SendEmailV2(
User().Email, /* <-- Specify the email address you want to send this email to */
ThisItem.PDFName,
"Please check the attached PDF for more details",
{
Attachments: Table({Name: ThisItem.PDFName & ".pdf", ContentBytes: ThisItem.PDFSource, '@odata.type':""})
}
)

When you press the corresponding "Email" icon within your PDFGallery, it would send corresponding PDF file to the specific email address (on my side, it would send an email to myself). The PDF attachments within the email looks like below:4.JPG

 

Please take a try with above solution, then check if the issue is solved.

 

More details about sending an email along with an attachment, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-outloo...

 

Best regards,

Community Support Team _ Kris Dai
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

1 REPLY 1
Community Support Team
Community Support Team

Re: Send PDF Attachment from PDF reader directly to email

Hi @T1agow ,

Could you please share a bit more about your scenario?

Do you want to send an email along with the PDF as the attachment within your template app?

 

Based on the needs that you mentioned, I have made a test on my side, please take a try with the following workaround:3.JPG

Firstly, you need to add a Office 365 Outlook connection data source within your app.

Within your PDFGallery, add a "Email" icon as above, then set the OnSelect property of the "Email" icon to following:

Office365.SendEmailV2(
User().Email, /* <-- Specify the email address you want to send this email to */
ThisItem.PDFName,
"Please check the attached PDF for more details",
{
Attachments: Table({Name: ThisItem.PDFName & ".pdf", ContentBytes: ThisItem.PDFSource, '@odata.type':""})
}
)

When you press the corresponding "Email" icon within your PDFGallery, it would send corresponding PDF file to the specific email address (on my side, it would send an email to myself). The PDF attachments within the email looks like below:4.JPG

 

Please take a try with above solution, then check if the issue is solved.

 

More details about sending an email along with an attachment, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-outloo...

 

Best regards,

Community Support Team _ Kris Dai
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

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 (5,374)