【发布时间】:2016-02-08 00:02:48
【问题描述】:
我正在使用带有 nodejs 的 sendgrid api,由于某种原因,电子邮件正在发送但没有添加新行。我用过,也 \n 但没有运气。知道有什么问题吗?
这是我正在使用的代码
var email = {
to: 'test@gmail.com',
from: 'hello@test.com',
subject: 'Membership',
text: 'Please view in html',
html: 'Hello there!,</br>\n\n' +
'Please click on the following link, or paste this into your browser to complete the process:\n\n' +
'Welcome and thanks for joining.\n\n' +
'</br>Your details we have are\n\n' +
'</br> Name: ' + user + '\n\n' + '</br> Telephone number: ' + number + '</br> email: ' + email + '</br>'
};
【问题讨论】:
-
@ServerSideSkittles 为什么不将解决方案标记为已接受的答案?我确信必须至少有一种对您有用的解决方案。不是吗?
标签: javascript node.js sendgrid