问题描述
const data = {
from: "me@samples.mailgun.org",to: email,subject: "password reset",html: `
<h1>hey,we received you have to reset your account password,${currentDate} </h1>
<h1> Please click on the link to reset your password </h1>\
<a href=${process.env.CLIENT_URL}/resetpassword/${token}> click here </a>
`,};
解决方法
我猜您必须为 "
属性添加 href
:
<a href="${process.env.CLIENT_URL}/resetpassword/${token}"> click here </a>