Html 通过电子邮件发送多个参数

Html 通过电子邮件发送多个参数,html,email,grails,Html,Email,Grails,大家好,我正在尝试通过电子邮件更改用户密码的方法,我当前的代码是: <html> <body> <p>Hello ${userInstance.user.username}, your password will be set to ${userInstance.new_pass} to finalise your password request, please click the link below.</p> <h2&g

大家好,我正在尝试通过电子邮件更改用户密码的方法,我当前的代码是:

<html>
<body>
    <p>Hello ${userInstance.user.username}, your password will be set to ${userInstance.new_pass} to finalise your password request, please click the link below.</p>
    <h2><g:link controller="reset" action="reset" params="[id:userInstance.user.id]" absolute="true">Please change my password</g:link></h2>
</body>

您好${userInstance.user.username},您的密码将设置为${userInstance.new_pass}要完成密码请求,请单击下面的链接

请更改我的密码
当前链接仅将用户ID参数发送到grails中的my方法。我希望把密码也作为参数发送!通过此链接发送userInstance.new_pass的可能解决方案是什么


p、 我正在使用grails邮件插件。

你试过这个吗

 <g:link controller="reset" action="reset" params="[id:userInstance.user.id;password:userInstance.user.password]" absolute="true">Please change my password</g:link>
请更改我的密码

从安全角度来看,在电子邮件中发送密码是非常非常糟糕的做法。详情见此:是的,这是真的。。最好在邮件中发送更新链接我知道这是一种不好的做法,在正确的方式完成之前,我只是临时快速修复。似乎不起作用。。\u grails\u app\u views\u reset\u resetMail\u gsp:22:应为“]”,找到“:”@22行,271列:userInstance.user.id;密码:userInsta ^1 error使用
而不是
-这是Groovy列表语法。