Mike 3 سال پیش
والد
کامیت
17eeb7435c
1فایلهای تغییر یافته به همراه3 افزوده شده و 10 حذف شده
  1. 3 10
      is_close_changed_notice.py

+ 3 - 10
is_close_changed_notice.py

@@ -53,7 +53,7 @@ def get_db_connection():
     return db
 
 
-# 寄送逾期執行表單Email通知
+# 寄送合約狀態修改Email通知
 def hhh_send_mail(email, subject, html):
     SENDER = "Gorgeous Space <noreply@hhh.com.tw>"
     RECIPIENT = email
@@ -63,7 +63,6 @@ def hhh_send_mail(email, subject, html):
     
     try:
         msg = MIMEMultipart()
-        # msg["Subject"] = "逾期執行表單通知_" + str(datetime.date.today())
         msg["Subject"] = subject
         msg["From"] = "noreply@hhh.com.tw"
         msg["To"] = email
@@ -282,15 +281,9 @@ async def is_close_changed_notice(exf_id: str = '', is_close: str = ''):
             </html>
             """ 
 
-    '''
-    # 寄送逾期執行表單Email通知
-    for email in email_list: # test
-        print('寄送Email: ' + email)
-    '''
-
     # Email清單
     email_list = ['mike@choozmo.com', 'stacy@choozmo.com']
 
-    # 寄送逾期執行表單Email通知
+    # 寄送合約狀態修改Email通知
     for email in email_list:
-        hhh_send_mail(email, html)
+        hhh_send_mail(email, subject, html)