from django.db.models.signals import post_save
from django.contrib.auth.models import User
def send_user_email(sender, instance=None, **kwargs):
if kwargs['created']:
#your code here to send mail
post_save.connect(send_user_email, sender=User)