Hello, I am trying to create a simple system that allows a user to send emails.
I have an email script working but i need to read in a html file, which is below and store it within a variable. <html xmlns:py="http://genshi.edgewall.org/" xmlns:xi="http://www.w3.org/2001/XInclude" py:strip=""> <py:def function="email_layout"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>${email_content.email_content_title}</title> <link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/email_template_css/')}${email_css}" /> <script type="text/javascript" href ="${tg.url('/Scripts/ jquery-1.3.1.mim.js')}" /> </head> <body> <div id="email_content"> <div id="email_header">${email_content_header}</div> <div id="email_main_body"> ${email_content_body} </div> <div id="email_footer">Footer</div> </div> </body> </py:def> </html> I need it so that the ${} information i also replace with text, from a database search. How is this possible? Adam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

