Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)

        def send_mail(subject, body, from_email, recipient_list, 
              fail_silently=False, html=None):
    EmailThread(subject, body, from_email, recipient_list, 
                fail_silently, html).start()
        


src/d/j/django-contactme-1.1/django_contactme/views.py   django-contactme(Download)
from django_contactme.models import ContactMsg
from django_contactme.forms import ContactMsgForm
from django_contactme.utils import send_mail
 
 
    html_message_template = loader.get_template(html_template)
    html_message = html_message_template.render(message_context)
    send_mail(subject, text_message, settings.DEFAULT_FROM_EMAIL, 
              [data['email']], html=html_message)
 
        notify_to = ["%s <%s>" % (name, email) 
                     for name, email in settings.ADMINS ]
    send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, notify_to)
 
 

src/d/j/django-contactme-HEAD/django_contactme/views.py   django-contactme(Download)
from django_contactme.models import ContactMsg
from django_contactme.forms import ContactMsgForm
from django_contactme.utils import send_mail
 
 
    html_message_template = loader.get_template(html_template)
    html_message = html_message_template.render(message_context)
    send_mail(subject, text_message, settings.DEFAULT_FROM_EMAIL, 
              [data['email']], html=html_message)
 
        notify_to = ["%s <%s>" % (name, email) 
                     for name, email in settings.ADMINS ]
    send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, notify_to)