Hi,
I am trying to send an email to several users once a form is submit. I have
done the view.py to update the database once the form is submitted and is
working fine. what i want to accomplish when the form is submitted is to
update the database and at the same time send out email when a user click
on the Authorized leave button.

here is the step i want to do:

 [image: Inline image 1]

1) user click on the check box and this form below appears


[image: Inline image 2]
 2) the user then fill up the form and click on authorized leave button.
the form will stored the information into the database. which i have
already done it. what i wanted to do next is to also send a emails when the
authorized leave button is click. is it possible to send emails and also
save data to database when the authorized leave button is click. i want to
send email to the *Test User* which have his email address store in the
database.

template.html
<form action ="" method="post">{%csrf_token%}
<table>
{{form.as_table}}
</table>
<br>
<input type="submit" name="submit" value="Authorized Leave" >


</form>

please point me to the right direction.

Cheers,

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAPCf-y4CG_XVK%2Bi9G2xVNY3qNRG52TuNZwF-4g9i4jQ60%3D8OtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to