Python Forum
Send email to gmail after user fill up contact form and getting django database updat
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Send email to gmail after user fill up contact form and getting django database updat
I created a django app where inside an HTML file I created a contact form. And when any user fill up the form and press submit button, django database is updated.

Now my problem is I want to create another .py file where I want to fetch data from django database and create some python code and send the fetched data to gmail.

Now my question is

1. How to fetch data from django database?
2. And where to keep .py file where the code which sends email to gmail. And how that .py file is automatically fired.

Possibly Related Threads…
Thread Author Replies Views Last Post
  register the user as staff member - django rwahdan 0 390 Dec-24-2021, 03:08 PM
Last Post: rwahdan
  find a hyperlink in Gmail body python 3(imap and selenium) taomihiranga 1 5,404 Dec-30-2020, 05:31 PM
Last Post: Gamer1057
  Not able to sign into gmail using selenium Leo_Red 4 2,973 Nov-19-2020, 05:03 AM
Last Post: Leo_Red
  Django send email - email form Remek953 2 1,000 Sep-18-2020, 07:07 AM
Last Post: Remek953
  How to send notifications to gmail from contact form using Django and pushbullet Justchse 0 838 Sep-01-2020, 01:19 PM
Last Post: Justchse
  User Input to mySQL database newbie1 3 2,145 Aug-26-2020, 10:42 AM
Last Post: newbie1
  Django admin form with parent child tmmaersk 0 901 Apr-02-2020, 06:42 AM
Last Post: tmmaersk
  Contact form button click action Man_from_India 1 1,501 Feb-01-2020, 06:21 PM
Last Post: snippsat
  how retrieve database save multiple data in web Django 2.1 taomihiranga 0 1,701 Jul-30-2019, 04:58 PM
Last Post: taomihiranga
  Django: How to automatically substitute a variable in the admin page at Django 1.11? m0ntecr1st0 3 1,691 Jun-30-2019, 12:21 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020