Skip to content
This repository was archived by the owner on Aug 23, 2020. It is now read-only.
This repository was archived by the owner on Aug 23, 2020. It is now read-only.

Signals #49

@danmir

Description

@danmir

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions