Did I find the right examples for you? yes no

All Samples(5)  |  Call(4)  |  Derive(0)  |  Import(1)

src/d/j/django-emailpgp-1.0/DjangoEmailPGP/__init__.py   django-emailpgp(Download)
from django.conf import settings
from django.core.mail import get_connection
from EmailPGP import EmailPGP
 
def send_mail(subject, message, from_email, recipient_list,
		password=auth_password, fail_silently=fail_silently)
 
	mail=EmailPGP(subject, message, from_email, recipient_list, connection=connection, encrypted=encrypted, signed=signed)
 
	if html_message:
	messages = []
	for line in datatuple:
		tmp=EmailPGP(line[0], line[1], line[2], line[3], encrypted=encrypted, signed=signed)
		if line[4]:
			tmp.attach_alternative(line[4], "text/html")
	if not settings.ADMINS:
		return
	mail = EmailPGP(u'%s%s' % (settings.EMAIL_SUBJECT_PREFIX, subject),
		message, settings.SERVER_EMAIL, [a[1] for a in settings.ADMINS],
		connection=connection, encrypted=encrypted, signed=signed)
	if not settings.MANAGERS:
		return
	mail = EmailPGP(u'%s%s' % (settings.EMAIL_SUBJECT_PREFIX, subject),
		message, settings.SERVER_EMAIL, [a[1] for a in settings.MANAGERS],
		connection=connection, encrypted=encrypted, signed=signed)