Source: mandrill.js

'use strict';

const autoBind = require('auto-bind');
const EmailServiceProvider = require('./email-service-provider');

class Mandrill extends EmailServiceProvider {

  /**
   * Create a Mandrill provider.
   * @extends EmailServiceProvider
   * @param {string} username - SMTP username for Mandrill.
   * @param {string} password - SMTP password for Mandrill.
   */
  constructor(username, password) {
    const config = {};
    config.host = 'smtp.mandrillapp.com';
    config.port = 587;
    config.secure = false;
    config.user = username;
    config.pass = password;
    super(config);
    autoBind(this);
  }

}

module.exports = Mandrill;