Sorry, Massimo, but I really don't get it. Is the slash causing the problem? I use '[controller]/[view.html]' to render other emails and it's all ok.
I even tried to do it this way in the mailing view: <a href="{{=URL('default','user', args='reset_password', scheme=True, host=True)}}/{{=XML('%(key)s')}}"> Go to password reset</a> - and nothing, still the same error. I would be grateful for another hint, if there is one. On Tuesday, October 1, 2013 10:31:23 PM UTC+2, Massimo Di Pierro wrote: > > You probably have same strange character in 'mailing/pass_reset.html' > > On Tuesday, 1 October 2013 13:26:46 UTC-5, lesssugar wrote: >> >> 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.