Please try the code in trunk. If the message is '<html>....</html>' it
should be sent automatically in html.

On Jul 29, 3:00 am, Rohan <yourbuddyro...@gmail.com> wrote:
> I need to send reset password mail as html, so i created
>
> in db.py
>
> auth.messages.reset_password = [None, "<html>Some html + Click on
> below link to reset your password\n\n
> http://'+request.env.http_host+URL(r=request,c='account',f='user',args=['reset_password'])+'/%(key)s
> </html>"]
>
> in tools.py request_reset_password api, tries to generate key and
> substitute in the message above
>
> self.settings.mailer.send(to=form.vars.email,
>
> subject=self.messages.reset_password_subject,
>
> message=self.messages.reset_password % \
>
> dict(key=reset_password_key))
>
> but in case of reset_password message is tuple or list, the above
> substitution will result in an error.
>
> Any pointers how to send html message?

Reply via email to