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

时间:2013-02-04 12:03:01

标签: 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:link controller="reset" action="reset" params="[id:userInstance.user.id]" absolute="true">Please change my password</g:link></h2>
</body>

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

P.S。我正在使用grails邮件插件。

1 个答案:

答案 0 :(得分:0)

你试过这个吗?

 <g:link controller="reset" action="reset" params="[id:userInstance.user.id;password:userInstance.user.password]" absolute="true">Please change my password</g:link>
相关问题