I'd like to send an email with html content - the current page:

mail.send('y...@example.com', 'Message subject', '<html>html body</html>')

How do I make the html body available in python code? (i.e. how do I pass 
it from the view to the python code?)

to get it in js easy - document.documentElement.outerHTML - but it's a long 
thing, just args and vars presumably won't work. 

what would be the best way to pass it over / to make it available in the 
code in order to send by email? 

p.s. I don't want to render page the again, as it has been already 
rendered; otherwise response.render would be an option... 

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/6745391f-8699-4042-b36d-065c27aedfa9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to