def user_registered_cb(user, **kwargs):
 siteconfig = SiteConfiguration.objects.get_current()
 if siteconfig.get(u'mail_send_new_user_mail'):
  mail_new_user(user)

def user_registered_cb ( user , ** kwargs ) : siteconfig = SiteConfiguration . objects . get_current ( ) if siteconfig . get ( u'mail_send_new_user_mail' ) : mail_new_user ( user )
send e-mail when a user is registered .