[web2py] Re: Using the template system to generate messages

2012-09-23 Thread Pystar
Kindly note that GAE doesnt support sending of HTML mails, so my solution wont work on GAE, check my solution to something related https://groups.google.com/forum/?fromgroups=#!topic/web2py/sR38-f677io On Sunday, September 23, 2012 8:15:36 PM UTC+1, Pystar wrote: > > Ok, I solved it. The trick

[web2py] Re: Using the template system to generate messages

2012-09-23 Thread Pystar
Ok, I solved it. The trick is that message is first text, then html. So the signature should read like this: context = dict(x=y) message = response.render("message.html", context) ***Please note that the message.html file should be in the top level of your views folder or should be a absolute pa

Re: [web2py] Re: Using the template system to generate messages

2012-09-23 Thread Marin Pranjić
Your email should begin with tag and end with . If you have anything before/after, it will not render. Marin On Sun, Sep 23, 2012 at 9:05 PM, Pystar wrote: > Using this method, the mail is sent successfully,but shows raw html code > in the email client, i.e. its not rendering > > > On Friday,

[web2py] Re: Using the template system to generate messages

2012-09-23 Thread Pystar
Using this method, the mail is sent successfully,but shows raw html code in the email client, i.e. its not rendering On Friday, September 7, 2012 4:19:45 PM UTC+1, Niphlod wrote: > > it's a path relative to the app's *views *folder. With this code your * > message.html* should be next to layout.

[web2py] Re: Using the template system to generate messages

2012-09-07 Thread Niphlod
it's a path relative to the app's *views *folder. With this code your * message.html* should be next to layout.html, just in the *yourapp/views/*folder. Il giorno venerdì 7 settembre 2012 17:04:27 UTC+2, Daniel Gonzalez ha scritto: > > As explained here: > > > http://web2py.com/books/default/chap