In gluon tools.py locate this code

                result = mail.send_mail(sender=self.settings.sender,
to=to,
                                        subject=subject, body=text)


and replace it with

                result = mail.send_mail(sender=self.settings.sender,
to=to,
                                        subject=subject, html=text)

Let me know if it solves the problem.


On May 19, 6:54 am, PanosJee <panos...@gmail.com> wrote:
> Hmmm no solution works for me
> We use the latese web2py version
> I tries the solution of Alexander but wihout any success (i also tried
> the solution of Thadeus but GAE just died without any log!)
>
> On 19 ÌÜúïò, 01:02, mdipierro <mdipie...@cs.depaul.edu> wrote:
>
> > This
>
> > message=[None,messagehtml]
>
> > whatever it does need some documentation.
>
> > On May 18, 3:48 pm, Alexandre Andrade <alexandrema...@gmail.com>
> > wrote:
>
> > > I have sucess with:
>
> > >        for person in db(db.cme.id==request.args(0)).select():
> > >             context = dict(person=person)
> > >             messagehtml = response.render('email.html', context)
> > >             status = mail.send(to=[person.email],
> > >                     subject='My Subject',
> > >                     message=[None,messagehtml])
>
> > > where 'email.html' is a view.
>
> > > 2010/5/18 Jon Romero <darks...@gmail.com>
>
> > > > It seems that I cannot send emails as html (they are displaying as
> > > > text).
>
> > > > mail = Mail()
> > > > mail.settings = ...
> > > > mail.send(to=user.email, subjest=subject, message=(message_text,
> > > > message_html))
>
> > > > Any clues?
>
> > > --
> > > Atenciosamente
>
> > > --
> > > =========================
> > > Alexandre Andrade
> > > Hipercenter.com

Reply via email to