Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6100849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:25:58+00:00 2026-05-23T13:25:58+00:00

In the system I am building user CAN NOT register them selves. The users

  • 0

In the system I am building user CAN NOT register them selves. The users are added by one of the system admins. So there is no user registration form or view. The registration is only being done in the admin so I guess that the send_mail has to be over there also (or am I wrong)?

I need to send an automatic email to the user when he/she is being created and only then (not on every save of the model).

Can any one help with this? Is there a built-in something for that? or how do I do that?

I’ve read about the create_user user Manager, but I thought there is a better way then editing a manager.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:25:58+00:00Added an answer on May 23, 2026 at 1:25 pm

    You can register a callback on the post_save signal for the User model. Somewhere along the lines of:

    # note: untested code
    
    from django.db.models.signals import post_save
    from django.contrib.auth.models import User
    
    def email_new_user(sender, **kwargs):
        if kwargs["created"]:  # only for new users
            new_user = kwargs.["instance"]
            # send email to new_user.email ..
    
    post_save.connect(email_new_user, sender=User)
    

    Note the if kwargs["created"]: condition which checks if this is a newly created User instance.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm building a system, where user can upload a file as data (not for
I'm building a part of a system where the user can define views from
so let's say i'm building this contact management system. There is a USER table
I am currently building a dynamic url tab system that user can say what
I am building a messaging system for a CMS and can not find a
I'm building a simple application. It's a user interface to an online order system.
In a .net system I'm building, there is a need for automated e-mail notifications.
I am building a multithreaded system that works like this: While there are entities:
I'm building a plugin system for my application. I've read that anyone can decomple
I'm building a regression system ( not unit testing) for some Perl scripts. A

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.