使用Grunt自动化MailChimp收件箱检查

时间:2015-03-18 11:54:23

标签: email gruntjs mailchimp inbox inspection

我希望通过在将模板放在一起时将测试电子邮件发送到MailChimp中的收件箱检查,使我的电子邮件构建过程更进一步。

快速搜索会显示一些基于MailChimp的Grunt任务,例如:https://github.com/h0lyalg0rithm/grunt-mandrill这会使用Mandrill API将测试电子邮件发送到指定的电子邮件地址。

module.exports = function(grunt){

  grunt.initConfig({
    mandrill: {
      mailer: {
        options: {
          key: 'your-mandrill-API-key',
          sender: 'send@email.com',
          recipient: 'recieve@email.com',
          subject: 'This is a test email'
        },
        src: ['templates/*.html']
      }
    }
  });

  grunt.loadNpmTasks('grunt-mandrill');
  });

这几乎是我之后但并不完全的。是否有可能使这项工作?感谢任何帮助。

0 个答案:

没有答案