阅读背景:

部署代码以解析云时出错

来源:互联网 
Parse.Cloud.define("email", function(request, response) {
 var Mandrill = require('mandrill');
 Mandrill.initialize('Dz74nd7RNATpV2Fj3tZ2yg');
  Mandrill.sendEmail({
  message: {
    text: request.params.text,
    subject: "otp!",
    from_email: "[email protected]",
    from_name: "hakim",
    to: [
        {
            email: request.params.email,
            name: "Some Name"
        }
    ]
},
async: true
 },{
success: function(httpResponse) {
    response.success("email sent");
},
   error: function(httpResponse) {

                 }
                 }
               );
  });
Parse.Cloud.define("email", function(request, r



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: