Esempio n. 1
0
def customer_query_emailer(subject,from_email,email_body,from_name=''):
    return default_django_emailer(subject, "From:<%s>%s\n%s" % (from_name,from_email,email_body), "<%s>%s" % ('nandakishore',from_email),['*****@*****.**'], fail_silently=False)
Esempio n. 2
0
def mail_admins(exception,params):
    return default_django_emailer('Exception', "Reason:%s\nParams:%s" % (exception.__str__(),str(params)), '*****@*****.**',['*****@*****.**'], fail_silently=False)
Esempio n. 3
0
def send_email(subject,name,email,context,template,sender=settings.DEFAULT_FROM_EMAIL):
    if settings.REDIRECT_EMAILS:
        print 'Emails to %s are redirected to %s' % (email, settings.EMAIL_TESTER)
        email = settings.EMAIL_TESTER
    message = loader.render_to_string(template, context) 
    default_django_emailer(subject, message, sender, [email], fail_silently = False)