def get_subject_and_message(subject_template, message_template, param_dict):
 subject = render_to_string(subject_template, param_dict)
 message = render_to_string(message_template, param_dict)
 return (subject, message)

def get_subject_and_message ( subject_template , message_template , param_dict ) : subject = render_to_string ( subject_template , param_dict ) message = render_to_string ( message_template , param_dict ) return ( subject , message )
return the rendered subject and message with the appropriate parameters .