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
#1
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Django: View is unable to find attributes of database model pythonpaul32 0 512 Dec-07-2023, 06:38 PM
Last Post: pythonpaul32
  Gmail API - Error 400: redirect_uri_mismatch Depp 1 1,590 Jun-12-2022, 10:42 AM
Last Post: snippsat
  Knowing User's Connection Type in Django Dexty 2 1,583 Apr-27-2022, 11:54 AM
Last Post: Dexty
  Save JSON data to sqlite database on Django Quin 0 2,871 Mar-26-2022, 06:22 PM
Last Post: Quin
  register the user as staff member - django rwahdan 0 1,484 Dec-24-2021, 03:08 PM
Last Post: rwahdan
  find a hyperlink in Gmail body python 3(imap and selenium) taomihiranga 1 8,176 Dec-30-2020, 05:31 PM
Last Post: Gamer1057
  Not able to sign into gmail using selenium Leo_Red 4 5,829 Nov-19-2020, 05:03 AM
Last Post: Leo_Red
  Django send email - email form Remek953 2 2,292 Sep-18-2020, 07:07 AM
Last Post: Remek953
  How to send notifications to gmail from contact form using Django and pushbullet Justchse 0 1,866 Sep-01-2020, 01:19 PM
Last Post: Justchse
  User Input to mySQL database newbie1 3 4,180 Aug-26-2020, 10:42 AM
Last Post: newbie1

Forum Jump:

User Panel Messages

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