浏览代码

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,6 +97,7 @@ def send_product_alerts(product):
97 97
     # Send all emails in one go to prevent multiple SMTP
98 98
     # connections to be opened
99 99
     connection = mail.get_connection()
100
+    connection.open()
100 101
     connection.send_messages(emails)
101 102
     connection.close()
102 103
 

正在加载...
取消
保存