from django.shortcuts import render

# Create your views here.
from email_template.utils import send_templated_email

def on_user_signup(user):
    context = {
        'Name': user.first_name,
        'phone': user.profile.phone_number       
    }
    send_templated_email(
        name='welcome_email',
        to_emails=[user.email],
        context=context
    )