def send_mass_template_mail(subject_template, body_template, recipients, context=None):
if context:<EOL><INDENT>subject, body = render_mail_template(subject_template, body_template, context)<EOL><DEDENT>else:<EOL><INDENT>subject, body = subject_template, body_template<EOL><DEDENT>message_tuples = [(subject, body, conf.get('<STR_LIT>'), [r]) for r in recipients]<EOL>send_mass_mail(message_tuples)<EOL>
Renders an email subject and body using the given templates and context,
then sends it to the given recipients list.

The emails are send one-by-one.