Node.js 节点邮件器在文本中嵌入链接

Node.js 节点邮件器在文本中嵌入链接,node.js,nodemailer,Node.js,Nodemailer,我试图在节点js中的文本中嵌入一个链接,如下所示 "You can <a href='http://"+ config.clientHost + "/#/rating/" + data._id + "'> click this link</a> or reply to this email using the format below: \n" “您可以使用以下格式发送或回复此电子邮件:\n” 但在邮件中,它显示出 使用node mailer发送电子邮件时,如何将此u

我试图在节点js中的文本中嵌入一个链接,如下所示

"You can <a href='http://"+ config.clientHost + "/#/rating/" + data._id + "'> click this link</a> or reply to this email using the format below: \n"
“您可以使用以下格式发送或回复此电子邮件:\n”
但在邮件中,它显示出


使用node mailer发送电子邮件时,如何将此url转换为node js中的“单击此链接”。

以html而不是文本发送您的正文。只有当你在“html”中发送你的html标签时,它才会转换,否则它将作为文本发送