Hello,

the trick is not in the email sending, but in resetting the password.

Assuming you don't use any user managing apps (as you didn't state it), you
will have to implement some parts, but the built-in auth module[1] already
covers a lot of this.

Best,
Gergely

[1]
https://docs.djangoproject.com/en/1.9/topics/auth/default/#using-the-views

On Sun, Sep 25, 2016, 23:17 João Rodrigues <joaorod...@gmail.com> wrote:

> I am working on a small online shop with Django 1.9 and I have a Customers
> page.
>
> Note: This is the back-end site. Only for me...
>
>
> <https://lh3.googleusercontent.com/-K7wOZmS02xU/V-gv1AdXafI/AAAAAAAADvk/LqVdk_j2Dwkzf_gUScG6fN6-s-Md4GXnwCLcB/s1600/2016-09-23%2B-%2BSend%2Bpassword%2Brecovery%2Be-mail.png>
>
>
> Clicking on the green lock icon should send a password recovery e-mail to
> the e-mail address of the Customer of that row.
>
> We assume that I can easily fetch the e-mail address of the targeted
> Customer, and that there is no need to check if the e-mail address is
> valid, because it is already in the system.
>
> How could I achieve the action of sending a password recovery e-mail to
> that user?
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/688c1a12-a7c2-4817-8c26-34ce59ab5c35%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/688c1a12-a7c2-4817-8c26-34ce59ab5c35%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACczBUKHmFvqy3U%3D0RZrPZYJWo18dP6k2CyLtkHnfmw19%2B4XVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to