瀏覽代碼

Fix issue with send_messages in alerts utils

Wasn't opening the connection first (according to Django's docs).  Not
100% this works - we'll see in the sandbox.
master
David Winterbottom 13 年之前
父節點
當前提交
ebf05daf82
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      oscar/apps/customer/alerts/utils.py

+ 1
- 0
oscar/apps/customer/alerts/utils.py 查看文件

97
     # Send all emails in one go to prevent multiple SMTP
97
     # Send all emails in one go to prevent multiple SMTP
98
     # connections to be opened
98
     # connections to be opened
99
     connection = mail.get_connection()
99
     connection = mail.get_connection()
100
+    connection.open()
100
     connection.send_messages(emails)
101
     connection.send_messages(emails)
101
     connection.close()
102
     connection.close()
102
 
103
 

Loading…
取消
儲存