# \[New Feature\] Using Sendgrid for emails

**URL:** <https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991>\
**Category:** Announcements\
**Created:** [September 14, 2016, 11:54pm UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991 "2016-09-14T23:54:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [September 14, 2016, 11:54pm UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/1 "2016-09-14T23:54:33Z")

</div>

We’ve just pushed an improvement to how we handle emails for your apps. We now let you use your own [Sendgrid](https://sendgrid.com/) accounts (which offers quite some emails for free). This enables you to see all the emails that have been sent, get some analytics, see your reputation as an email sender, etc.

All apps on a domain (from now on) will be using this new system to send an email using the domain (otherwise it’ll be using admin-no-reply@bubble.is). Once you’ve successfully set up your A records for your domain, you’ll be able to enter your API key in the Settings Tab, Domain & Email section. Just click ‘Check my Sendgrid key’ and you’ll be good to go.

 ![](https://us1.discourse-cdn.com/bubble/original/2X/7/79a1257765640760153ecfe20999949de43cc18e.png)

Apps that are already on a domain will continue to work as usual, and if you enter your key and verify it, you’ll be automatically on the new system.

---

<div class="post-metadata">

**Author:** ![cm1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cm1/32/3947_2.png) [@cm1](https://forum.bubble.io/u/cm1)\
**Post date:** [September 15, 2016, 7:27am UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/2 "2016-09-15T07:27:28Z")

</div>

Do we need an SendGrid account for each app?

---

<div class="post-metadata">

**Author:** ![nicolas.daprigny](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@nicolas.daprigny](https://forum.bubble.io/u/nicolas.daprigny)\
**Post date:** [September 15, 2016, 8:24am UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/3 "2016-09-15T08:24:59Z")

</div>

You can generate from your account different API keys for each one of your app, so you’re able to track your stats.

---

<div class="post-metadata">

**Author:** ![nicolas.daprigny](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@nicolas.daprigny](https://forum.bubble.io/u/nicolas.daprigny)\
**Post date:** [September 15, 2016, 8:53am UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/4 "2016-09-15T08:53:17Z")

</div>

Thanks for this feature.

@emmanuel Would it be possible to select ([api call here](https://sendgrid.com/docs/API_Reference/Web_API_v3/Transactional_Templates/templates.html#-GET)) in the Domain & Email tab one template from our SendGrid account and specify it in the send call (adding [template\_id](https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html#-Request-Body-Parameters)) ?

Without turning all our “send email” actions into new actions throught the API connector, we could provide good looking emails like this one :

 ![](https://us1.discourse-cdn.com/bubble/original/2X/3/3c2e538fbf992aa5f27986cf95a59eab689753b8.png)

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [September 15, 2016, 10:53am UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/5 "2016-09-15T10:53:46Z")

</div>

I’ll see what we can do.

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [September 15, 2016, 4:04pm UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/6 "2016-09-15T16:04:45Z")

</div>

Just pushed that.

---

<div class="post-metadata">

**Author:** ![JohnM](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@JohnM](https://forum.bubble.io/u/JohnM)\
**Post date:** [September 15, 2016, 5:20pm UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/7 "2016-09-15T17:20:48Z")

</div>

👍 can’t wait to try. Very good timing. I love those options:

![](https://us1.discourse-cdn.com/bubble/original/2X/1/1b28602dbb8a1d9dd15f1a2c752bcb660f083d4f.png)

---

<div class="post-metadata">

**Author:** ![cm1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cm1/32/3947_2.png) [@cm1](https://forum.bubble.io/u/cm1)\
**Post date:** [September 15, 2016, 11:54pm UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/8 "2016-09-15T23:54:41Z")

</div>

Would you mind sharing an example? i have tried to work with this, but apparently my skills are not good enough 🙂

Thanks in advance 🙂

---

<div class="post-metadata">

**Author:** ![nicolas.daprigny](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@nicolas.daprigny](https://forum.bubble.io/u/nicolas.daprigny)\
**Post date:** [September 16, 2016, 10:53am UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/9 "2016-09-16T10:53:21Z")

</div>

hey,  
after your sendgrid account is set, you create a new template, then an new version of this template and you copy its ID in your Email & Domain settings :

 ![](https://us1.discourse-cdn.com/bubble/original/2X/0/0a1172f36bbacca0777616f12cf2ed0444b9547f.png)

Have you done this already ?

---

<div class="post-metadata">

**Author:** ![cm1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cm1/32/3947_2.png) [@cm1](https://forum.bubble.io/u/cm1)\
**Post date:** [September 16, 2016, 12:49pm UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/10 "2016-09-16T12:49:47Z")

</div>

Yes. i have done that

 ![](https://us1.discourse-cdn.com/bubble/original/2X/e/ee376e6ef65c1547bbd3edd8b47017ec13a4977f.png)

* * *

 ![](https://us1.discourse-cdn.com/bubble/original/2X/0/05952baffeaa9cb82bb5aed3ad7ef932f4613940.png)

---

<div class="post-metadata">

**Author:** ![cm1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cm1/32/3947_2.png) [@cm1](https://forum.bubble.io/u/cm1)\
**Post date:** [September 16, 2016, 6:02pm UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/11 "2016-09-16T18:02:30Z")

</div>

Anyone else started to use successfully?

---

<div class="post-metadata">

**Author:** ![nicolas.daprigny](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@nicolas.daprigny](https://forum.bubble.io/u/nicolas.daprigny)\
**Post date:** [September 16, 2016, 8:19pm UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/12 "2016-09-16T20:19:09Z")

</div>

I’ve just tired and it works well. Did you let the field \<%subject%\> in your template ?

---

<div class="post-metadata">

**Author:** ![cm1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cm1/32/3947_2.png) [@cm1](https://forum.bubble.io/u/cm1)\
**Post date:** [September 16, 2016, 9:04pm UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/13 "2016-09-16T21:04:22Z")

</div>

but how did you manage to edit the template from bubble? yes i have the field \<%subject%\>

 ![](https://us1.discourse-cdn.com/bubble/original/2X/f/f022e2f3632ab8c79d8fd0004870f5bce7edd7b5.png)

---

<div class="post-metadata">

**Author:** ![nicolas.daprigny](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@nicolas.daprigny](https://forum.bubble.io/u/nicolas.daprigny)\
**Post date:** [September 16, 2016, 9:33pm UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/14 "2016-09-16T21:33:47Z")

</div>

you can’t edit your template from Bubble. The \<%subject%\> will be automaticaly replaced by the body field from your “Send email” action  
If you need to use more templates, then you’ll need the API Connector and to specify the template\_id you want.

---

<div class="post-metadata">

**Author:** ![cm1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cm1/32/3947_2.png) [@cm1](https://forum.bubble.io/u/cm1)\
**Post date:** [September 16, 2016, 10:49pm UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/15 "2016-09-16T22:49:04Z")

</div>

Hi again

I think that the \<%body%\> is replaced by the by the body field from your “Send email” action.  
It’s a little bit limited still. How much were you able to personalize?

regards

---

<div class="post-metadata">

**Author:** ![cm1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cm1/32/3947_2.png) [@cm1](https://forum.bubble.io/u/cm1)\
**Post date:** [September 16, 2016, 11:01pm UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/16 "2016-09-16T23:01:20Z")

</div>

For example, are you able to add buttons from sendgrid?

---

<div class="post-metadata">

**Author:** ![nicolas.daprigny](https://avatars.discourse-cdn.com/v4/letter/n/b38774/32.png) [@nicolas.daprigny](https://forum.bubble.io/u/nicolas.daprigny)\
**Post date:** [September 17, 2016, 8:52am UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/17 "2016-09-17T08:52:46Z")

</div>

The only variable for this default transactional template is \<%body%\>. Consider it as an email with a good layout, no more.  
For more personalizations, like a button, you’ll need the API connector. See [here](https://sendgrid.com/docs/Classroom/Send/v3_Mail_Send/curl_examples.html) and [here](https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/index.html).

---

<div class="post-metadata">

**Author:** ![jonaspalmqvist](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jonaspalmqvist/32/7307_2.png) [@jonaspalmqvist](https://forum.bubble.io/u/jonaspalmqvist)\
**Post date:** [October 26, 2016, 10:01am UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/18 "2016-10-26T10:01:32Z")

</div>

Is it possible to send dynamic data to the email templates in Sendgrid through bubble, e.g. DB values?

---

<div class="post-metadata">

**Author:** ![emmanuel](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/emmanuel/32/27657_2.png) [@emmanuel](https://forum.bubble.io/u/emmanuel)\
**Post date:** [October 26, 2016, 11:29am UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/19 "2016-10-26T11:29:20Z")

</div>

No, are this stage the template is static. But you could build your own integration with the API connector.

---

<div class="post-metadata">

**Author:** ![jonaspalmqvist](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jonaspalmqvist/32/7307_2.png) [@jonaspalmqvist](https://forum.bubble.io/u/jonaspalmqvist)\
**Post date:** [October 26, 2016, 11:32am UTC](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991/20 "2016-10-26T11:32:35Z")

</div>

Thanks. Hmm, own integration. I’ll think some more about that when I come to that. I think the emails will be very static if not being able to customize per user or action, e.g. an order confirmation email with static info.

[Next page](https://forum.bubble.io/t/new-feature-using-sendgrid-for-emails/5991.md?page=2)
