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