I'm trying to send a custom email template to user when they perform 
password reset:

*db.py:*

auth.messages.reset_password = response.render(
    'mailing/pass_reset.html',
    dict(subject="Password reset",
        link=URL('default','user', args='reset_password')))

and in *mailing/pass_reset.html*:

...
<a href="{{=URL('default','user', args=['reset_password'], scheme=True, 
host=True) + '/%(key)s'}}"> Go to password reset</a>
...

and everytime I'm testing, I get this:

 File "/home/username/www/web2py/gluon/tools.py", line 2739, in 
email_reset_password
    dict(key=reset_password_key, link=link)):
ValueError: unsupported format character '"' (0x22) at index 411


Any ideas what might be wrong?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to