Comments (15)
If he removed it from his account, I would inform support.
from notifme-sdk.
Yes sure, I think the best way is to call SparkPost api without using the nodemailer transport.
You can check Nexmo provider, which also calls an api: https://github.com/notifme/notifme-sdk/search?utf8=%E2%9C%93&q=nexmo&type=
Let me know if you need more information.
from notifme-sdk.
@aydrian SparkPost API is integrated :)
Note: 5 emails by day in sandbox mode to test is a bit short...
from notifme-sdk.
Thank you. Yes. It's short by design. The deliverability of those emails are not great and were being abused by spammers. Once you create a sending domain, you can send 15K per month for free.
from notifme-sdk.
@aydrian I'm unsure about cc
and bcc
in your code, it's not passed the same way in the documentation (https://www.sparkpost.com/docs/faq/cc-bcc-with-rest-api/), can you confirm that it's working this way?
https://github.com/notifme/notifme-sdk/blob/master/src/providers/email/sparkpost.js#L44-L45
from notifme-sdk.
The node library has sugar methods to make passing cc & bcc easier. Let me double check.
from notifme-sdk.
Sorry. I'll do a PR to fix those. I need to pass them in an array.
from notifme-sdk.
It's my mistake in fact, I didn't see that the lib was transforming these fields.
I'm changing their type to make things clearer:
export type EmailRequestType = CommonRequestType & {
...
cc?: string[],
bcc?: string[],
...
}
from notifme-sdk.
I can handle the change, it doesn't seem to be a big change. One question though: if I have multiple cc
, is that the right syntax?
"content": {
"from": "[email protected]",
"headers": {
"CC": "[email protected], [email protected], [email protected]"
},
"subject": "To and CC",
"text": "This mail was sent to [email protected] while CCing [email protected]."
}
from notifme-sdk.
Here's an example with the sugar. I would just use that, then it's just an array of objects and the lib will transform it for you.
The header is only part of it. You also need them in the recipients with the header_to
property set. Here's an example.
from notifme-sdk.
I removed the lib dependency, that's why I need to rewrite "the sugar". So:
- for
cc
andbcc
: for each email I add an object inrecipients
containingaddress.email
(cc
orbcc
address) andaddress.header_to
(original recipient) - for
cc
only, I addcontent.headers.CC
(comma separated values)
Is this right?
(Edited: switched email
and header_to
)
from notifme-sdk.
Yes. The lib is a thin wrapper so the structure would be the same as the second example.
from notifme-sdk.
verifying your domain: Status Blocked
:/
from notifme-sdk.
Awe... It looks like your domain is already in use in another account. Do you have multiple SparkPost accounts?
from notifme-sdk.
It seems that @jnoleau added the domain on his test account, it should be alright now. Should I contact support or you can take care of it?
from notifme-sdk.
Related Issues (20)
- node version HOT 1
- Vote for Botkit integration ( as a bridge to FB, Hangouts, Teams, Websocket, Webhooks etc ) HOT 1
- requiring 'notifme-sdk' results in error HOT 1
- FCM device groups HOT 8
- Support EU region for mailgun procvider
- node-fetch upgrade to 2.6.1 HOT 2
- Error require in Sailjs 1.x HOT 3
- Cannot read property 'levels' of undefined - Winston during yarn jest HOT 1
- node-forge Prototype Pollution vulnerability HOT 2
- nodemailer Command Injection vulnerability HOT 1
- How to run the project? HOT 1
- Query : Is there any plan to support template management HOT 1
- FCM Config HOT 4
- Nestjs Implementation HOT 1
- Database channel ? HOT 1
- Slack messages HOT 1
- Is there any plan for whatsapp integration support
- Does it support multilingual notifications or locale (timezone / language) based customization
- Is this project still active? HOT 2
- error HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notifme-sdk.