You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var helper = sendgrid.mail;
var mail = new helper.Mail();
var personalization = new helper.Personalization();
var email = new helper.Email("[email protected]", "Fracttal");
Issue Summary
I can not send email with accents
Steps to Reproduce
var helper = sendgrid.mail;
var mail = new helper.Mail();
var personalization = new helper.Personalization();
var email = new helper.Email("[email protected]", "Fracttal");
mail.setFrom(email);
mail.setSubject("Servidor áéíóúÑñáéíóúÑñáéíóúÑñ");
email = new helper.Email("[email protected]", "áéíóúÑñáéíóúÑñáéíóúÑñáéíóúÑñ");
personalization.addTo(email);
mail.addPersonalization(personalization);
var content = new helper.Content("text/plain", "Servidor áéíóúÑñáéíóúÑñáéíóúÑñ: " + new Date());
mail.addContent(content);
var sg = sendgrid.SendGrid("xxxxxxxxxxxxxxxxxxx");
var requestPost = sendgrid.emptyRequest;
requestPost.method = 'POST';
requestPost.path = '/v3/mail/send';
requestPost.body = mail.toJson();
sg.API(requestPost, function (response) {
console.log(response.statusCode);
console.log(response.body);
console.log(response.headers);
});
ERROR:
400
{"errors":[{"message":"Bad Request","field":null,"help":null}]}
{ server: 'nginx',
date: 'Wed, 15 Jun 2016 16:14:22 GMT',
'content-type': 'application/json',
'content-length': '63',
connection: 'close',
'x-frame-options': 'DENY' }
Technical details:
The text was updated successfully, but these errors were encountered: