0

I am unable to send click able link via email . Here is my code

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>

  ` ,
};

Mail is successfully sent to the email but the link is not clickable It looks like

enter image description here

1 Answers1

0

I guess you have to add " for href property:

<a href="${process.env.CLIENT_URL}/resetpassword/${token}"> click here </a>
vpalmerini
  • 403
  • 4
  • 9