|
@@ -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))
|
|
|
|