# Attach file and send out email via SendGrid

**URL:** <https://forum.bubble.io/t/attach-file-and-send-out-email-via-sendgrid/8968>\
**Category:** Need help\
**Created:** [December 22, 2016, 11:03am UTC](https://forum.bubble.io/t/attach-file-and-send-out-email-via-sendgrid/8968 "2016-12-22T11:03:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![marco.dellermann](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/marco.dellermann/32/8561_2.png) [@marco.dellermann](https://forum.bubble.io/u/marco.dellermann)\
**Post date:** [December 22, 2016, 11:03am UTC](https://forum.bubble.io/t/attach-file-and-send-out-email-via-sendgrid/8968/1 "2016-12-22T11:03:46Z")

</div>

Hey Bubble Community,

a problem I am facing is sending out emails via SendGrid that includes uploaded files (usually pdf documents).

What I have managed so far:

Sending out emails with the uploaded files by using a link. Unfortunately, a couple of the email receivers are complaining that the link does not work on their computers (I don’t have a clue why, as it works for me and my colleagues).

So I am trying to send out emails with a link where the receivers are forced to download the file but cannot figure out the solution for that or any other way how to solve this problem.

It would be great if you could let me know of anything that might help me getting this issues solved.

Best,  
Marco

---

<div class="post-metadata">

**Author:** ![john3](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/john3/32/5625_2.png) [@john3](https://forum.bubble.io/u/john3)\
**Post date:** [December 22, 2016, 7:05pm UTC](https://forum.bubble.io/t/attach-file-and-send-out-email-via-sendgrid/8968/2 "2016-12-22T19:05:39Z")

</div>

Have you tried changing the storage link to Dropbox or something else to verify it’s not a firewall or something else on the customer end like virus scanner stopping the download?

Have you tried just displaying the PDF instead of downloading by taking them to a bubble page with that PDF view on it?

---

<div class="post-metadata">

**Author:** ![topherwilliams](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/topherwilliams/32/9504_2.png) [@topherwilliams](https://forum.bubble.io/u/topherwilliams)\
**Post date:** [March 6, 2017, 4:41pm UTC](https://forum.bubble.io/t/attach-file-and-send-out-email-via-sendgrid/8968/3 "2017-03-06T16:41:56Z")

</div>

@john3 I’m working on a similar problem right now.

For the second option you mentioned, how would you create a bubble page with a PDF on it?

UPDATE: Nevermind! I figured it out already.

---

<div class="post-metadata">

**Author:** ![JustinC](https://avatars.discourse-cdn.com/v4/letter/j/da6949/32.png) [@JustinC](https://forum.bubble.io/u/JustinC)\
**Post date:** [October 14, 2017, 11:57pm UTC](https://forum.bubble.io/t/attach-file-and-send-out-email-via-sendgrid/8968/4 "2017-10-14T23:57:43Z")

</div>

I’m having trouble sending a PDF attachment by email using Sendgrid.

When it’s received it’s the aws file link but it goes nowhere and cannot be downloaded (gives an error)

The attachment in gmail looks wierd:

![image](https://us1.discourse-cdn.com/bubble/original/3X/f/c/fc69d8ff044fcfec9dfb37cf24fb4ab52fc2b95a.png)

Also, what are both of these fields? Because they’re cut off.

![image](https://us1.discourse-cdn.com/bubble/original/3X/f/d/fd490a9e90a187f17fa3ddb2914170ca92320f47.png)

When i fill out the top one, i get an error:

![image](https://us1.discourse-cdn.com/bubble/original/3X/c/9/c93b95e424da8928d3dcabd8b5de8bceb84e9ed9.png)

![image](https://us1.discourse-cdn.com/bubble/original/3X/9/8/9869613adc4cf680a1f7f9803de08e4ca38da084.png)

---

<div class="post-metadata">

**Author:** ![djwideman](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@djwideman](https://forum.bubble.io/u/djwideman)\
**Post date:** [October 15, 2017, 12:58am UTC](https://forum.bubble.io/t/attach-file-and-send-out-email-via-sendgrid/8968/5 "2017-10-15T00:58:12Z")

</div>

You need to use [base64 encoding](https://bubble.io/reference#Data.Messages.file.to_base64). **_FileUploader UPLOAD INVOICE’s value:encoded as base 64._**
