title: Django custom context_processors in render_to_string method
body: <p>I'm building a function to send email and I need to use a context_processor variable inside the HTML template of the email, but this don't work.</p>
  
  <p>Example:</p>
  
  <pre><code>def send_email(plain_body_template_name, html_body_template_name):
      plain_body = loader.render_to_string(plain_body_template_name, context)
      html_body = loader.render_to_string(html_body_template_name, context)
      email_msg = EmailMultiAlternatives(body=plain_body)
      email_msg.attach_alternative(html_body, 'text/html')
      email_message.send()
  </code></pre>
  
  <p>In my custom <code>context_processor.py</code> I just have a function that receive a <code>HttpRequest</code> and return a dict like <code>{'foo': 'bar'}</code>, and in the template I try to render using <code>{{foo}}</code>.</p>
  
  <p>I added the context_processor in the <code>TEMPLATE['OPTIONS']['context_processors']</code> too.</p>