Problem with sendgrid plugin

Hi everyone! I have a problem sending emails with a template.

If you use the plugin a with the basic configuration


get this error message
35
the reference link

make this change in “to the email address” (I do not know if it is ok) and then:
52
:confused:

Well, choose to use the native sengrid bubble configuration
the template works, but does not get the body tag


I do not know if I’m doing something wrong.

Anyone having the same problem?
appreciate any help!

I battled with a similar error until I understood that they have changed their api - what used be called substitutions is now called dynamic template data - that’s why you’ve gotten the error (to the best of my understanding).

@copilot might need to update the plugin?

You can solve this by creating your own api connection instead of using the plugin and replacing the substations with dynamic template date, here is an example. Place this in the body of the api call:

{

"from": {
"email": "<senderEmail>",
"name": "<senderName>"
},

"content": [{
	"type": "text/html",
	"value": "-"
}],
"template_id": "d-c114a2f636204017983",

"personalizations": [{
	"to": [{
		 "email": "<toEmail>",
      "name": "<toName>"
	}],
	"dynamic_template_data": {
        "body": "<Body>",
        "subject": "<Subject>",
	}
    
}],
"tracking_settings": {
	"click_tracking": {
		"enable": true,
		"enable_text": true
	},
	"open_tracking": {
		"enable": true
	}
}

}

Hey @RonyjM,

You can only use legacy email templates with the ‘Send email’ calls, and not dynamic email templates. There is a dedicated email action for sending emails with dynamic templates which is included in the latest release.

As we always say, please reach out to plugins@cobubble.com to get your inquiry in front of us sooner. :slight_smile:

Hi rene! thks for u help!!!
I never create my own connection before, so I search around and started! but sadly doesn`t works!

here it’s my api call

  • the id key and the template id are set


Thks a lot again

Thks cobubble!!!
i understood! i used “send dynamics email” y works! but can’t set dynamics data and custom argument, can giveme some reference links

thks again

@RonyjM You can always refer to SendGrid’s documentation, or build your own integration. We’ll be pushing updates to our implementation of SendGrid pending upgrades to plugin development suite. :wink:

Try filling out demo values in for all the key’s - also uncheck private for the keys so you can pass the data from your app.

I’m not completely clear (sorry :disappointed_relieved:)
At this time, can “send dynamic emails” using dynamic data with a sendgrid template?
and if possible; how?
As you can see, I’m trying to build mine, but I can not solve it either. (I’m new)
I’m lost
Thank you!

:frowning: It does not work either!
I read and tried a couple more things and nothing.
I think maybe the quickest solution is to pay a freelance :slight_smile:

really thks

This is the exact call that is working for me:

And this is the body of the call:

{

"from": {
"email": "<senderEmail>",
"name": "<senderName>"
},

"content": [{
	"type": "text/html",
	"value": "-"
}],
"template_id": "d-c1f636204017983e466746042c8a",

"personalizations": [{
	"to": [{
		 "email": "<toEmail>",
      "name": "<toName>"
	}],
	"dynamic_template_data": {
    "customContent1": "<customContent1>",
        "customContent2": "<customContent2>", 
        "firstname": "<FirstName>",
        "subject": "<Subject>"
	}
    
}],
"tracking_settings": {
	"click_tracking": {
		"enable": true,
		"enable_text": true
	},
	"open_tracking": {
		"enable": true
	}
}

}

thks! @copilot , with de upgrade i can get the mail that i need. But maybe u can helpme again. How i can send the email to all my users? just works it for current user or a manually mail.

thks again.!

Hi @RonyjM

As far as I am aware the plugin doesn’t support sending to multiple emails at once. You have to put the send email into an API scheduled call and call it for each email you want to send it to. This is not ideal but as far as I can see is the only solution using this plugin.

Simon

Just checked the API and it supports up to 1000 recipients so looks like it’s a @copilot plugin limitation not sendgrid. Probably have to create your own API connect to have multiple recipients!

Hi @simon,

You can still send an email to multiple recipients by using an API Workflow that iterates over a list. Alternatively, you can upgrade to Version 5.0+ of the Send emails with SendGrid plugin which bundles more features like configurable click tracking, open tracking and multiple recipients into one action. :wink:

Great when will 5.0 be available to upgrade to?

Simon

@simon,

It is already available! Try giving your Editor a refresh if you had it open for the past few hours. :slight_smile:

You are very right - great thanks

Just a note for others - Upgrading - destroys all your previous email workflows so you will have to re-create them all!

Not sure if this is a bug or by design @copilot ?
goodlifesorted%20%20%20Bubble%20Editor%20(1)

You can restore by going back to v 4.5.1

Hi @simon,

Not a bug - we made a deprecation note as well if you caught it. That’s the beauty of versioning. :+1:

I see it now, but didn’t understand what it meant. So this means you basically can’t upgrade without re-doing all your email workflows - which could be huge.

I guess people just need to be aware.

Thanks for your help
Simon