You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2020. It is now read-only.
Hello. I'm trying to send email on user_registered signal to get full information about this user. I made signals.py file with the following code (as in official django docs on signals):
from registration.signals import user_registered
from django.dispatch import receiver
from django.core.mail import send_mail
@receiver(user_registered)
def user_registered_callback(sender, **kwargs):
raise Exception(kwargs)
msg = "User: {} User email: {} User google id {} ".format(kwargs["user"], kwargs["user"]['email1'],
kwargs["profile"]["google_plus_acc_num"])
msg += kwargs
send_mail('New mm user', msg, 'email_from',
['email_to'], fail_silently=False)
Lately I have added raise Exception(kwargs) to see if smth. happens or not.
Unfortunately nothing happens nor Exception neither sending email.
Did I made a mistake using your library ?
Thanks.