Forum Documentation Showcase Pricing Learn more

Sending email with Sendgrid - general options


#1

Hi,

need some help in understanding how Sending email works.

I already use the standard sender in bubble, so far only for some emails related to account and registration. Everything works, even if there’s not template or design stuff.

Then i registrered on Sendgrid, get the api and inserted on bubble.

Now i want to use a template, in order to make the emails look nicer. The problem is that, after inserting the template id in the setting, every email i send is the same. I mean, seems that the template actually becomes the new mail, replacing and deleting the body of the email (something that i don’t want to happen of course)

Am i missing something in the process?

In case anything is not clear, please tell. Thank you in advance for your help

Andrea


Sendgrid documentation and API needs updating
#2

As far as I have tried Sendgrid plugin. The transactional template will be sent as it is to everyone. I’ve tried to insert custom values (i.e., to personalize user name) but it never worked too.

On the bright side, the delivery is very reliable and looks great.


#3

You probably want to install the plugin then use transactional templates, create a different template for each use case. You can send dynamic information to the template. In the plugin it has lots of Variables you can send and in the sendgrid template you just add {{VARX}} to represent that variable data.

i.e.

Hello {{VAR1}}

then in bubble send VAR1 as the users firstname.

Hope that points you in the right direction.

Simon


#4

Thank you @simon,

i’m also exploring the way you mentioned. So far i’ve faced some issues in using that specific function, but i’ve already contacted the plugin support, so we are working together to solve the bug (apparently looks like a bug, but who knows…)

However, i wrote this post cause i can’t understand the meaning of inserting a template in the general setting.

If i insert the template in the generale setting (right below the api key), that template is applied in every mail sended by my website, also replacing the body. I’m pretty sure i’m missing something, otherwise the function is totally without any sense.

Can someone please clarify this to me?

Thank you

Andrea


#5

Hi, @simon

It never worked until I copied {{VAR1}} in your comment and pasted it in the plugin. Your comment is a magic!

Still wonder why I typed {{VAR1}} myself never worked.

Thank you very much, you made my day :slight_smile:


#6

Hey everyone… good to see some details about setting up Sendgrid, as it took me down some back alleys when I set it up a few weeks ago.

For the record, I got stuck for a while until I realised that you need to set up a Legacy Transactional Template in Sendgrid, rather than a normal one. I’m completely unclear about whether you can access a normal Transactional Template from within Bubble, and why you’d want to do that.

I’ve yet to play with the {{VAR1}} feature but look forward to trying that this week. So are you guys using that with the @copilot plugin?

It would be great to see any other details posted here from experience of what works and how to use it!

Best wishes,
Antony.


#7

Any other people experiencing this?

About to start using Sendgrid myself, so the timing on this post is great.


#8

Hi, @antony @SenorPelota

I have just done it right and want to share with you guys. So you don’t have to waste your time like me, lol.

First, go to Sendgrid panel on the left > Templates > Transactional

Then Create Template at the top right corner > Create template name > add a version name. Also copy the Template ID in the red circle.

In add a version, select Design Editor

In your email subject, body or even buttons, you can put variable data by adding {{VAR1}}

Now go to Bubble plugins tab > Send emails with SendGrid plugin > put your API key

Go to Bubble workflow > plugins > SendGrid - Send email

Paste Template ID (Dynamic type starts with d-)

Go down to substitution tags to add variable values, you can have many variable by putting {{VAR1}} {{VAR2}} {{VAR3}} in the template and adding VAR1, VAR2, VAR3 here
38

Done! Your email will go “Hi, your username”

Hope this helps :slight_smile:


#9

Hey @privilet.info the Pixels Poet… Thanks soooo much! It makes such a difference when we can help each other out like this. I will take a look at it later on today.
I have an existing setup which uses the Legacy Templates… be interesting to compare the two and see what the differences are. I’ll have a play and update you on all I find!
Best wishes,
Antony.


#10

Antony,

Just to let you know when you move to dynamic templates and update the SendGrid plugin you loose all your previous Bubble sendgrid config. When I moved from legacy to the new ones it took me a day to find and update all my templates and bubble code. (enjoy :slight_smile:)

Simon


#11

Oh wow, thanks for that input @simon! I didn’t get around to it today, but it will definitely be on my agenda tomorrow, so I will bear your experience in mind…


#12

hi @privilet.info,

thank you for your explanation. unfortuantely i’m afraid there’s a bug, because today i already tried to do exactly what you did and showed, but still, i don’t see the variable changing. Infact, in the received email, i still see {{VAR1}}.
Then i sent an email to the developer of the plugin. Waiting for a reply now…


#13

Hi, @escaperoomers

That’s what happened to me before as I said in reply 5. I used {{VAR1}} from Simon’s reply 3 and it worked!

Try it and let’s see.