from django.template import loader from django.core.mail import send_mail def render_to_email(view,subject,to_emails,from_email,*args,**kwargs): """ Renders a view to an email Example: render_to_email("myview.html","the subject",("to_example@example.com",),"from@example.com",{},context=RequestContext(request)) """ body=loader.render_to_string(view,*args,**kwargs) send_mail(subject,body,from_email,to_emails)