Adding a name to the “from” field in SendGrid in Node.js

后端 未结 4 1752
粉色の甜心
粉色の甜心 2020-12-15 05:55

I want to add a name to my \"from\" field using the SendGrid API, but I do not know how to do this. I tried setting the \"from\" parameter in sendgrid.send to <

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-15 06:15

    If you are using the nodejs Helper library, use the following arguments:

    from_email = new helper.Email("email@domain.com", "Email Name");
    

提交回复
热议问题