Javascript 通过SendGrid以云代码发送电子邮件的大小限制

Javascript 通过SendGrid以云代码发送电子邮件的大小限制,javascript,email,parse-platform,sendgrid,Javascript,Email,Parse Platform,Sendgrid,使用SendGrid模块通过解析云代码发送大型电子邮件似乎存在问题。某些消息不会发送并返回400错误 {"Cache-Control":"no-cache","Connection":"close", "Content-Type":"text/html","Date":"Wed, 13 Aug 2014 03:21:13 GMT", "Server":"nginx/1.4.7"},"text":"<html><body><h1>400

使用SendGrid模块通过解析云代码发送大型电子邮件似乎存在问题。某些消息不会发送并返回400错误

    {"Cache-Control":"no-cache","Connection":"close",
    "Content-Type":"text/html","Date":"Wed, 13 Aug 2014 03:21:13 GMT",
    "Server":"nginx/1.4.7"},"text":"<html><body><h1>400 Bad request</h1>
    \nYour browser sent an invalid request.\n</body></html>\n"

有没有办法让这个长字符串工作?谢谢

我建议将此作为开发者的bug报告打开。facebook.com谢谢。这是一个bug,已经解决了:我将把它交给Parse-in的管理员,让他们部署它。部署后,我将再次对此发表评论。同时,可以找到最新的源代码。要使用它,只需使用它,而不是解析环境中的一个,一切都应该工作:我们也在努力使文档更友好!
    var hostEmail = host.attributes.user.attributes.email;
    var subject = visitorFullName + " is here to see you";
    var html = '@@html-email text goes here';

    SendGrid.sendEmail({
        to: hostEmail,
        from: "no-reply@example.co",
        subject: subject,
        html: html
    }, {
        success: function(httpResponse) {
             response.success('email sent');
        },
        error: function(httpResponse) {
            response.error(httpResponse);
        }
    });