New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mandrill-blast

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mandrill-blast - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

12

blast.js

@@ -16,3 +16,4 @@ var argv = require('optimist').argv,

+ '\n-k | --key : [REQUIRED] Your Mandrill API key'
+ '\n-f | --from : [REQUIRED] Your "from_email" '
+ '\n-fe | --from-email : [REQUIRED] Your "from_email" '
+ '\n-fn | --from-name : [OPTIONAL] Your "from_name" '
+ '\n-tec | --to-email-column : [REQUIRED] which {{COLUMN-NAME}} would like to use for the "email" field, such as --to-email-column="emailaddress", the script will look for the "emailaddress" value of each row and use it as the to.email'

@@ -57,5 +58,7 @@ + '\n-s | --subject : [OPTIONAL] The Email "subject", you can use template in it, such as --email-subject="Hello {{name}}", optional, defaults to blank.'

var emailFrom = argv.f || argv.from;
var emailFrom = argv.fe || argv['from-email'];
if (!emailFrom) error('You must provide a "from" email.');
var nameFrom = argv.fn || argv['from-name'];
var toEmailColumn = argv.tec || argv['to-email-column'];

@@ -81,4 +84,7 @@ if (!toEmailColumn) error('You must provide a "to-email-column", basically, which column of each row is the email-address to send to');

from_email: emailFrom,
from_name: nameFrom,
subject: subjectTemplate(data),
text: bodyTemplate(data)
html: bodyTemplate(data),
text: bodyTemplate(data),
auto_text: true
};

@@ -85,0 +91,0 @@

{
"name": "mandrill-blast",
"version": "0.0.1",
"version": "0.0.2",
"description": "blast a CSV list of emails with template data via Mandrill API",

@@ -6,0 +6,0 @@ "main": "blast.js",

@@ -39,2 +39,3 @@ mandrill-blast

### Todo
Anything that the heart desires, I needed this as a 10 minutes hack and it got the job done, if you have ideas or needs, submit a pull or feature request.
* make it a reusable module
* anything that the heart desires, I needed this as a 10 minutes hack and it got the job done, if you have ideas or needs, submit a pull or feature request.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc