from celery.task import task
from django.core.mail import send_mail
from django.template.loader import render_to_string
from django.conf import settings

@task
def send_welcome_emails(account, useraccount):

    # Send them a welcome email
    send_mail("Welcome to GoodCloud!", "%s" % render_to_string("accounts/welcome_email.txt", locals()), settings.SERVER_EMAIL, [useraccount.email] )

    # Send us a notification that we have a new signup!
    send_mail("New Account: %s!" % (account,), "%s" % render_to_string("accounts/new_signup_email.txt", locals()), settings.SERVER_EMAIL, [e[1] for e in settings.MANAGERS] )    
0dffca420b4a8f135d5ad006eb2d2404b9066c1c
<mask token>

<mask token>


@task
def send_welcome_emails(account, useraccount):
    send_mail('Welcome to GoodCloud!', '%s' % render_to_string(
        'accounts/welcome_email.txt', locals()), settings.SERVER_EMAIL, [
        useraccount.email])
    send_mail('New Account: %s!' % (account,), '%s' % render_to_string(
        'accounts/new_signup_email.txt', locals()), settings.SERVER_EMAIL,
        [e[1] for e in settings.MANAGERS])

from celery.task import task
from django.core.mail import send_mail
from django.template.loader import render_to_string
from django.conf import settings


@task
def send_welcome_emails(account, useraccount):
    send_mail('Welcome to GoodCloud!', '%s' % render_to_string(
        'accounts/welcome_email.txt', locals()), settings.SERVER_EMAIL, [
        useraccount.email])
    send_mail('New Account: %s!' % (account,), '%s' % render_to_string(
        'accounts/new_signup_email.txt', locals()), settings.SERVER_EMAIL,
        [e[1] for e in settings.MANAGERS])

from celery.task import task
from django.core.mail import send_mail
from django.template.loader import render_to_string
from django.conf import settings

@task
def send_welcome_emails(account, useraccount):

    # Send them a welcome email
    send_mail("Welcome to GoodCloud!", "%s" % render_to_string("accounts/welcome_email.txt", locals()), settings.SERVER_EMAIL, [useraccount.email] )

    # Send us a notification that we have a new signup!
    send_mail("New Account: %s!" % (account,), "%s" % render_to_string("accounts/new_signup_email.txt", locals()), settings.SERVER_EMAIL, [e[1] for e in settings.MANAGERS] )    