I need to send an email to my user list in Sendgrid. The emails should include a personalised link to my website. These links can't be pre-generated.
Can Sendgrid call a Cloud Function, or make an API call to generate the personalised links?
I need to send an email to my user list in Sendgrid. The emails should include a personalised link to my website. These links can't be pre-generated.
Can Sendgrid call a Cloud Function, or make an API call to generate the personalised links?
Copyright © 2021 Jogjafile Inc.
I am missing some context to understand exactly what you're trying to do. It sounds like you are using SendGrid Contact Lists/Segments, and you want to use a single send to email them. Is that accurate?
Using Single Sends, you can use handlebars templating to generate your emails, however, handlebars does not let you make HTTP requests or call Cloud Functions. You can pull data from the SendGrid Contact, so if you need to have a personalized link to your website, that URL will need to be composed of data in the SendGrid Contact.
If the data you need in the URL is not stored in the Contact yet, you can update the contact and store the data in a custom field, then pull the data from the contact in your Handlebars template.
If you aren't using SendGrid Contacts, but instead, you're pulling your contacts from somewhere using node.js, then you can use personalization with either Substitution Tags or Dynamic Email Templates in the SendGrid node.js library.