Use email templates with node.js + sendgrid - node.js

I am building an app using node.js and using sendgrid to handle my emails. Does anyone know of a way I can define an email template that can be used in the email's body?
Thanks in advance!!

Sendgrid docs detail how to create your template here, and if you're looking to send the template via node, you'll need Sendgrid Mail (not to be confused with Sendgrid Client), there's an example of how to send your template here.

If you are using the sendgrid-nodejs library then you can find an example of how to specify a template in the readme. You can also find more high-level transactional email template information in the docs.

Related

Sendgrid generate personalized content while sending

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 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.

Is it possible to send a DocuSign template via sms delivery?

As the title suggests, I'm wondering how I can send a template defined within Docusign via SMS delivery. However, I'm only seeing documentation on how to send a document from storage outside of docusign. Am I missing something?
Yes, for the recipients specified in a template, your API program can choose for them to be notified by SMS only, SMS and email, or email only.
This live example via the API Request Builder uses a template to send an SMS-only notification to a recipient.
This live example via the API Request Builder uses a template to send SMS and email notifications to a recipient.
If you want to know how to replace a template's document with a different document when you send the envelope, here's a live example for that.
The API Request Builder can create the examples in C#, Java, PHP, Node.JS, Ruby, or Python.

Azure Sendgrid has gone missing

as the title states... The sendgrid in my Azure portal is missing and I did not get any notifications about this. Does anyone know what happened? I searched for the resource and it's not there but recommends me to get a sendgrid twilio.
The weird part is my function apps are still linked into the sendgrid and I have no access to it. I also have a sendgrid function url...
Any ideas what is going on?
I finally found mine in the Azure Portal. They have been renamed from SendGrid to SaaS
As per this Document Twilio has completely acquired sendgrid and that is one of the reason why you are unable to find sendgrid in azure portal rather you can able to find Twilio sendgrid.
So what ever you want to create you need to do it only through Twilio Sendgrid
As per the statement from the above image what ever you want to deal with Sendgrid you can check in Twilio Send grid
Here is the document for creating Twilio Sendgrid Email API.

how to build an email functionality in Node js?

I need to build an api for email integration for every client (like yahoo,gmail,outlook) using same api. For gmail I have used nodemailer. And in that I am using refresh token for security. And in that also I am able to integrate email for only one user. I need to send emails to the user and also they can reply to that same email.
Anyone know any clue how to do this. Please help.
Thanks in Advance.

Azure Logic App - Simple Email Template for JSON Request Body

I've got a simple Azure Logic App, which receives and emails out JSON data in a very basic HTML table format (created with a convertToTableAction).
Does anyone know of a way to instead send this out using an email template?
I've got a SendGrid account set up with my Azure subscription, but there doesn't seem to be any way to specify a template id with the Send email (v2) action in Logic apps.
I can't quite see how I'd edit the Logic App code to use the only SendGrid api that seems to support sending templates V3 either. (It is my first Logic app though, so I could well be missing a trick)
Really, any advice on how to send out a templated email would be appreciated.
As you mentioned that the logic app integrate the Sendgrid(V2) currently. You could give your feedback to Azure team.
If azure function is acceptable, you could add and run custom code for logic apps through Azure Functions
there is two way to do it ..
1) Using SendGrid Connector :
You need to create one azure function or web API pass request as your JSON outout string and replace with html content and get html in response
Pass html response in body of the send email action of SendGrid Connector
Details of SendGrid Connector
Please refer this link for Json data replaced to html
my explanation is very short but if you don't understand then i will help you in details

Resources