alfonsodg / demo-web2py

Apache License 2.0
0 stars 0 forks source link

html mail broken on GAE #121

Closed alfonsodg closed 10 years ago

alfonsodg commented 10 years ago

From richar...@gmail.com on November 07, 2010 18:54:43

When trying to send HTML mail on GAE I get:

mail.send(message='message') False Mail.send failure:May not set empty value for 'body'

mail.send(message=('dummy content', html)) True

Seems the problem is GAE expects text to have content, even though it is not used:

gluon/tools.py: elif message.strip().startswith('<html') and message.strip().endswith(''): text=None html=message

I have fixed that by setting text=message

Original issue: http://code.google.com/p/web2py/issues/detail?id=122

alfonsodg commented 10 years ago

From massimod...@gmail.com on November 08, 2010 15:57:58

fixed as per your suggestion. Please check it.

Status: Fixed

alfonsodg commented 10 years ago

From massimod...@gmail.com on November 08, 2010 15:57:58

fixed as per your suggestion. Please check it.