我想发送有效的邮件,但我想将重定向网址发送到邮件文本
var mailOptions = {
from: 'sachincoder96@gmail.com',
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
};
但由于':'和//这导致我收到错误。
text: 'Go to this link for confirmation of your registration'+ localhost:8000/user/registration/confirmation?id=id
答案 0 :(得分:1)
URL是字符串的一部分,您的语法无效。
text: 'Go to this link for confirmation of your registration http://localhost:8000/user/registration/confirmation?id=id'