Mia 5 months ago
parent
commit
a4360f87e6
2 changed files with 2 additions and 2 deletions
  1. BIN
      api/__pycache__/db_router.cpython-312.pyc
  2. 2 2
      api/db_router.py

BIN
api/__pycache__/db_router.cpython-312.pyc


+ 2 - 2
api/db_router.py

@@ -265,10 +265,10 @@ def insert_table(data: dataform):
     try:
         response,count = supabase.table('lost_property').insert(data.dict()).execute()
 
-        email_content = response[1][0]
+        email_content = f"問題類別:{response[1][0]['type']}\n標題:{response[1][0]['title']}\n內容:{response[1][0]['content']}\n姓名:{response[1][0]['client_name']}\n性別:{response[1][0]['gender']}\n電子郵件:{response[1][0]['email']}\n聯絡電話:{response[1][0]['phone']}\n"
 
         try:
-            send_email("mia@choozmo.com",data.email,str(email_content))
+            send_email("steven@choozmo.com","mia@choozmo.com",str(email_content)) # mallservice@tfc101.com.tw
         except Exception as e:
             print(str(e))