def render_mail_template(subject_template, body_template, context):
try:<EOL><INDENT>subject = strip_spaces(render_to_string(subject_template, context))<EOL>body = render_to_string(body_template, context)<EOL><DEDENT>finally:<EOL><INDENT>pass<EOL><DEDENT>return subject, body<EOL>
Renders both the subject and body templates in the given context.
Returns a tuple (subject, body) of the result.