Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
ghost-email-service
Advanced tools
nodejs client to interact with the sendgrid and mailchimp apis
npm install ghost-email-service --save
Provide sendgrid secret key + template names and the associated ID's
{
"email": {
"processor": "sendgrid",
"sendgrid": {
"secretKey": "[sendgrid secret key]",
"templates": {
"templateName": "[templateId]"
},
"sandboxMode": true,
"defaults": {
"fromEmail": "noreply@yourwebsite.com",
"fromName": "Pablo Escobar",
"replyTo": "contact@yourwebsite.com"
}
}
}
}
{
"email": {
"processor": "mailchimp",
"mailchimp": {
"secretKey": "[mailchimp api key]",
"mandrill": "[mandrill api key]"
}
},
"defaults": {
"fromEmail": "noreply@yourwebsite.com",
"fromName": "Justin Tucker",
"replyTo": "contact@yourwebsite.com"
}
}
{
"fromEmail": "noreply@domain.com",
"fromName": "The Ghost Team",
"toEmail": "noreply@domain.com",
"toName": "Test User",
"subject": "Test Email",
"substitutions": {
"url": "http://test.com",
"name": "Test User"
}
}
{
"fromEmail": "noreply@domain.com",
"fromName": "The Ghost Team",
"toEmail": "noreply@domain.com",
"toName": "Test User",
"replyTo": "noreply@domain.com",
"subject": "Test Email",
"globalMergeVars": {
"url": "http://test.com",
"name": "Test User"
}
}
The module will attempt to load the mail send services provided in the config object
assuming a valid secret key and template id's, along with the sandbox setting.
All templates will be available via the send(templateName, obj)
method.
The module will attempt to load the mail send services provided in the config object
assuming a valid secret key and mandrill key.
All templates will be available via the send(templateName, obj)
method.
See examples below.
Follow the steps below to get the module up and running.
const GhostEmail = require('ghost-email-service');
const EmailService = new GhostEmail(config)
// See config above
The template name should correspond to a template id within the config object
The template name should correspond to a template found within your mailchimp templates
EmailService.send('templateName',obj)
.then(result => { ... })
.catch(err => { ... });
// See obj above
FAQs
nodejs client to interact with the sendgrid and mailchimp apis
The npm package ghost-email-service receives a total of 1 weekly downloads. As such, ghost-email-service popularity was classified as not popular.
We found that ghost-email-service demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.