0
我使用SES和Django向多個收件人發送電子郵件。SES - Django - 發送給幾個人的電子郵件 - 只有一個人收到
第一個接收器正確接收它,而不是其他接收器。我試圖改變接收者的順序,並且它始終是接收它的第一封電子郵件。我使用的是相同的代碼,而不是另一個項目,因爲我沒有任何問題......因此,我懷疑亞馬遜問題,但是從亞馬遜控制檯發送確實沒問題。
當檢查通過的第一個電子郵件收到的電子郵件,我可以看到,它應該被髮送到正確的addesses(在到場)。
平原收到的電子郵件是這樣的(我已經刪除IP地址和ID,取而代之的是[email protected]電子郵件):
Delivered-To: [email protected]
Received: by ... with SMTP id nXXX;
Wed, 10 Apr 2013 18:02:18 -0700 (PDT)
X-Received: by ... with SMTP id XXX;
Wed, 10 Apr 2013 18:02:17 -0700 (PDT)
Return-Path: <[email protected]>
Received: from a8-50.smtp-out.amazonses.com (a8-50.smtp-out.amazonses.com. [...])
by mx.google.com with ESMTP id XXX;
Wed, 10 Apr 2013 18:02:17 -0700 (PDT)
Received-SPF: pass (google.com: domain of [email protected] designates ... as permitted sender) client-ip=...;
Authentication-Results: mx.google.com;
spf=pass (google.com: domain of [email protected] designates ... as permitted sender) [email protected]
Return-Path: [email protected]
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: Website Enquiry
From: [email protected]
To: [email protected], EMAIL2gmail.com
Date: Thu, 11 Apr 2013 01:02:16 +0000
Message-ID: <[email protected]>
Reply-To: [email protected]
X-SES-Outgoing: 54.240.8.50
Hello,
you have received a message from XXX:
Name: francois
Email: [email protected]
test 55
正如前面提到的,如果我反向:EMAIL2 @ gmail.com,EMAIL1gmail.com。 EMAIL1收到該郵件,而不是[email protected]。
Django的代碼是非常基本的,只是用這樣的:
self.send_email(
content=self.get_contact_email_content(contact),
subject='Website Enquiry',
to=['[email protected]', '[email protected]'],
reply_to=contact.email_address
)
相同的行爲和生活在開發中。
我很無能。
嘗試設置'fail_silently = TRUE'看到獲取生成 – karthikr 2013-04-11 01:25:20
的'SMTPException'我認爲你的意思=假(我剛剛嘗試了兩個確定) - 沒有生成異常。 – 2013-04-11 01:43:36
對不起,我的意思是「假」 – karthikr 2013-04-11 03:03:31