Hello Serge, It not clear what you are doing exactly, do you mean you parse text with BeautifulSoup before input it into the database field? And what is unacceptable?
About 1, I think previous question would help understand better the issue. About 2, I don't see why it wouldn't work... But as I am not sure what you try to accomplish, I mean if you strip off tag with beatiful in the first place why add some tag back when you send the message... I am sure we would benefit to see a bit of your code to bettter help you. Note that HTML in email is a difficult topic as render engine are much less homogeneous in email client like outlook, thunderbird than what you may have from a normal browser. So having the right presentation everywhere is more difficult to achieve than a regular web page. Good Luck Richard On Tue, Jun 20, 2017 at 12:24 PM, Serge Bourgeois < serge.bourgeo...@gmail.com> wrote: > > 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 with rich text > fields for the email body. Using BeautifulSoup.BeautifulSoup(my_field).text > removes the tags, but the result is not accceptable. > > So, if there is a helper, I could not find it (or not use it properly). > 1. With Mail().send, how to fill the 'message' parameter from a text field > (let's say my_field) filled in via the ckeditor widget (which allows also > to incluse a mail address or a URL). > 2. After getting a response to this first question, if I want to append > let's say 2 text fields, I 'm gonna try SPAN(my_first_text_field, BR(), > my_second_text_field). Will this work? > > Thanks in advance for any advice. > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.