Did I find the right examples for you? yes no

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

src/d/j/django-emailpgp-1.0/DjangoEmailPGP/__init__.py   django-emailpgp(Download)
 
	if html_message:
		mail.attach_alternative(html_message, "text/html")
 
	for attachment in attachments:
		tmp=EmailPGP(line[0], line[1], line[2], line[3], encrypted=encrypted, signed=signed)
		if line[4]:
			tmp.attach_alternative(line[4], "text/html")
		for attachment in line[5]:
			tmp.attach(*attachment)
		connection=connection, encrypted=encrypted, signed=signed)
	if html_message:
		mail.attach_alternative(html_message, 'text/html')
	for attachment in attachments:
		mail.attach(*attachment)
		connection=connection, encrypted=encrypted, signed=signed)
	if html_message:
		mail.attach_alternative(html_message, 'text/html')
	for attachment in attachments:
		mail.attach(*attachment)