Re: Send E-mail to User When Account is Activated though Django Admin Application

2018-11-20 Thread Yavin Aalto Arba
I would also recommend checking out using Signals instead of directly from the view: https://docs.djangoproject.com/en/2.1/topics/signals/ You can then write a a function that will send an email based on the event. The sending email documentation is superb: https://docs.djangoproject.com/en/2.1/to

Re: Send E-mail to User When Account is Activated though Django Admin Application

2018-11-19 Thread ljh . holmes
I've done this recently by importing smtplib into my views.py file, and made executing a mail send a result of a view. I didn't realize at the time, but there is Django specific tools for this as well. https://docs.djangoproject.com/en/2.1/topics/email/ On Monday, November 19, 2018 at 2:44:3

Send E-mail to User When Account is Activated though Django Admin Application

2018-11-19 Thread Asad Habib
Is there a way to send an e-mail to a user when their account is activated through the Django admin application? I can do it independently of the Django admin application but I want the admin to be signed in before they activate a user. Is there a way to achieve this without customizing the Dja