Skip to content

Commit

Permalink
feat(app): replace mandrill-api to @mailchimp/mailchimp_transactional
Browse files Browse the repository at this point in the history
  • Loading branch information
koalex committed Jan 3, 2024
1 parent 50b0487 commit fc5944e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/mandrill-transport.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var extend = require('extend');
var addressparser = require('addressparser');
var mandrill = require('mandrill-api/mandrill');
var mailchimp = require('@mailchimp/mailchimp_transactional');

var packageData = require('../package.json');

Expand All @@ -13,7 +13,7 @@ function MandrillTransport(options) {
options = options || {};

var auth = options.auth || {};
this.mandrillClient = new mandrill.Mandrill(auth.apiKey);
this.mandrillClient = mailchimp(auth.apiKey);
}

MandrillTransport.prototype.send = function(mail, callback) {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
},
"homepage": "https://github.com/Rebelmail/nodemailer-mandrill-transport",
"dependencies": {
"@mailchimp/mailchimp_transactional": "^1.0.50",
"addressparser": "^1.0.1",
"extend": "^3.0.0",
"mandrill-api": "^1.0.45"
"extend": "^3.0.2"
},
"devDependencies": {
"chai": "^3.5.0",
Expand Down

0 comments on commit fc5944e

Please sign in to comment.