sendgrid-nodejs | The Official Twilio SendGrid Led, Community Driven Nodejs API Library | Email library
kandi X-RAY | sendgrid-nodejs Summary
kandi X-RAY | sendgrid-nodejs Summary
This library is broken up into several packages as a monorepo so that you only need to install the packages necessary for your use case. This README contains information about all packages. For examples on how to get started quickly, head over to the READMEs of each package (linked and described below), which includes detailed examples.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Add user data to list of emails
- Create a confirmation email .
- Checks that the fields are added to the custom fields
- Prepare a new notification email .
- Checks if string exists in array
- Remove the URL
- Verify a signature
- check given email .
- Check if the given item is an array .
sendgrid-nodejs Key Features
sendgrid-nodejs Examples and Code Snippets
Community Discussions
Trending Discussions on sendgrid-nodejs
QUESTION
I am currently building an automation email in SendGrid. The setup process seems very straightforward, but I can't find how or where to add a CC email address.
I've researched SendGrid's documentation and other sites to find a possible solution. Two sources had the right idea, but they provided examples using Node.js (see SendGrid Personalizations and Twilio Blog). I am needing to add a CC address inside SendGrid's Automation Email creator.
Does the SendGrid Automation system provide this capability, or is this best achieved through Node.js (or other background-handling languages)?
...ANSWER
Answered 2022-Mar-28 at 22:47I don't believe that you can send an Automation with a cc.
You can track when Automation emails are sent to users by registering for the Event Webhook.
When users reply to the automation email and just get an email saying that their message was received, I assume that is because the email address you send the automation from is just set up to autorespond. You could set that email address up with the Inbound Parse Webhook so that you can trigger other events when you receive emails to that address. You could, in that case, send an email to your sales team, or register the response in a database, or forward the message to a CRM system.
If the only solution for you is to use a cc, then Automations may not work for you and you will have to send using the Mail Send API which gives you lots more control over the email being sent, but does lose the automation features.
QUESTION
I am trying to send an email as a reply to a previous thread using SendGrid v3 APIs. But it always shows as a new email thread in Outlook. I am using "Message-ID", "In-Reply-To" and "References" fields but it always fails to show under single thread. I am referring this thread here to set the headers.
SendGrid document doesn't specify if v3 supports replying to previous thread or not. Any way to achieve email thread conversation is appreciated.
...ANSWER
Answered 2021-Dec-20 at 02:34OKAY. I figured out the key here. I was missing "<>"angled brackets and looks like SendGrid takes it very seriously. So this is how headers section should look like.
QUESTION
I'm trying to send .ics
calendar invites through SendGrid (from Node server) so that it renders in clients like Outlook or Gmail as an actual invitation (with accept/decline buttons) and not just as an attachment file.
I've spent days researching this (dozens of Stackoverflow questions, RFC-5545, RFC-2446, iCalendar Specification Excerpts, Sendgrid's GitHub issues threads: 1, 2, 3, SendGrid docs, sources etc).
However, there just doesn't seem to be an answer for this (or am I missing something out?).
What I've found so far is that Content-Type
for the attachment is very important here, especially, method=REQUEST
part. And that even the order of properties in the file makes difference.
Despite a lot of questions here on SO, most of them remain unanswered for some reason.
Here's how I set up my attachment
object:
ANSWER
Answered 2021-Apr-19 at 19:58Okay, so after a lot of trial and error I finally got this working. I hope the code will be helpful to others.
So, firstly, what I did was send an actual event invite from iCalendar and receive this .ics
invite (which actually got rendered in both Outlook and Gmail). I looked at how this file was different from what I was generating and found a curious thing:
the key to get this working was...
MAGIC STRINGS
Yeah, totally random, weird magic strings.
Below I'm posting the .ics
file content that worked for me.
TOTTALLY-RANDOM-MAGIC-STRING
- is a placeholder for a totally random strings like uuids or maybe your organisation emails or anything else.
The key is: with these strings in the file Outlook and Gmail render the invite correctly, and without them - don't. Weird, but working.
I wasn't able to find anything meaningful about this in the docs or RFCs, so I guess it's safe for now to call these magic strings.
The first magic string is TOTTALLY-RANDOM-MAGIC-STRING@imip.me.com
.
And the second magic string is /TOTTALLY-RANDOM-MAGIC-STRING/principal/
.
QUESTION
Issue Summary
If I try to send an email with attachment added, I get not Promise resolve and no response, However, if I comment out the attachment logic, I receive error (I entered invalid token to get error), like I expected. The path to the doc file is real, but for this piece of code I changed it.
Code not working:
...ANSWER
Answered 2020-Dec-04 at 07:18As I write to SendGrid developers, they admit it's a bug on their package and it will be fixed:
"@orassayag Thanks for providing more information. I was able to recreate this issue and it looks like a bug on our end. We will add it to our internal backlog to be prioritized. Pull requests and +1s on the issue summary will help it move up the backlog. In the meantime I would suggest using node version 12.20.0 and Sendgrid/mail: 7.4.0 as a work around solution for now. Using these versions, I was able to get the error logs to show up when attaching the same file."
Question close.
QUESTION
I'm having trouble writing a wrapper for an overloaded function.
The function I'm wrapping is the SendGrid email sending function. That function is overloaded like (simplified):
...ANSWER
Answered 2020-Feb-26 at 00:04This is a shortcoming of the the class MailService
declaration. It could have a more accurate type definition like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install sendgrid-nodejs
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page