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

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)

src/s/t/staff.sitcon.org-HEAD/issues/utils.py   staff.sitcon.org(Download)
from notifications.models import *
from notifications.utils import get_mail_setting, send_template_mail, format_address, send_template_sms
 
def send_mail(sender, receiver, template_name, context):
	context['sender'] = sender
	context['receiver'] = receiver
	sender = get_mail_setting('sender', 'issues') % sender.profile.name()
	receiver = format_address(receiver.profile.name(), receiver.email)
	return send_template_mail(sender, receiver, template_name, context)

src/s/t/staff.sitcon.org-HEAD/users/forms.py   staff.sitcon.org(Download)
from django.core.urlresolvers import reverse
from django.core.exceptions import ValidationError
from django.contrib.auth.models import User
from django.contrib.auth.forms import PasswordResetForm as DjangoPasswordResetForm
from notifications.utils import get_mail_setting, format_address, send_template_mail
			sender_address = get_mail_setting('sender', 'account')
			receiver_address = format_address(user.profile.name(), user.email)
			send_template_mail(sender_address, receiver_address, 'mail/user_reset_password.html', context)
 

src/s/t/staff.sitcon.org-HEAD/users/views/create.py   staff.sitcon.org(Download)
				}
 
				from notifications.utils import send_template_mail, format_address
 
				sender_address = format_address(request.user.profile.name(), request.user.email)
				receiver_address = format_address(user.profile.name(), user.email)
				send_template_mail(sender_address, receiver_address, 'mail/user_welcome.html', context)