Reputation: 95
I am using nodemailer package with Brevo SMTP in my backend app and I am trying to send an email from where the user should be able to reset their password. The email is sent but the link is not clickable:
And the element looks like this in the console:
I set a dummy URL just to see if it works and if I click that link from the href attribute it redirects me to the google page:
var link = "http://google.com";
const mailOptions = {
from: process.env.RESET_PASSWORD_EMAIL,
to: email,
subject: 'Password Reset',
html: '<p>You are receiving this email because you have requested the reset of the password for your account.</p><br />' +
'<p>Please click on the following link, or paste this into your browser to complete the process:</p>' +
'<a href=\"' + link.toString() + '\">Reset password</a><br />' +
'<p>If you did not request this, please ignore this email and your password will remain unchanged.</p>'
};
Upvotes: 0
Views: 85