Re: [web2py] Re: Email from text field while preserving the text format

2017-06-21 Thread Richard Vézina
Hello Serge, Yes, I guess your record is consider text so it is quoted... You seems to have find a solution, but you may have a look at XML() it gonna manage escaping and encoding for you... About the other field, if you keep going with you "manual" html tag (without using the web2py helpers) you

Re: [web2py] Re: Email from text field while preserving the text format

2017-06-21 Thread Serge Bourgeois
Finally, I could find the solution to my first question. It is in fact very esay. Here is my receipe: Assuming that the content of the text field is in your local variable my_text_field_content, simply put this in the 'message' variable of the MAIL() function from gluon.tools: message = (my_text

[web2py] Re: Email from text field while preserving the text format

2017-06-20 Thread Serge Bourgeois
Le mardi 20 juin 2017 18:24:43 UTC+2, Serge Bourgeois a écrit : > > > I like web2py for the good balance between simplicity and completeness. > Most of the time, when I have a question, I can find a response googeling. > Today not... > > I could cope with attachments, but I'm still struggling w