sachin yadav
sachin yadav

Reputation: 367

Send redirect URL in the text body of mail using nodemailer

I am tring to send mail which is working but i want to send redirect url into the mail text

var mailOptions = {
          from: '[email protected]',
          to: user_info.email,
          subject: 'Sign up confirmation.',
          text: 'Go to this link for confirmation of your registration'+ http://localhost:8000/user/registration/confirmation?id=id
        };

but due to ':' and // this the i am getting error.

 text: 'Go to this link for confirmation of your registration'+ localhost:8000/user/registration/confirmation?id=id

Upvotes: 0

Views: 514

Answers (1)

Chris Lam
Chris Lam

Reputation: 3614

The URL is part of the string, your syntax is invalid.

text: 'Go to this link for confirmation of your registration http://localhost:8000/user/registration/confirmation?id=id'

Upvotes: 1

Related Questions