2017-07-10 7 views
0

私はdjangoとAWSを使ってメールを送ります。 アカウントをサンドボックスから移動しました。私はbotodjango-sesを使用DjangoはAWSサンドメールを使用しています。「SESAddressNotVerifiedError:400メールアドレスが確認されていません。

Your account has also been moved out of the sandbox 

。 私はエラーを取得する私のsetting.pyは

EMAIL_BACKEND = 'django_ses.SESBackend' 
AWS_ACCESS_KEY_ID = '************************' 
AWS_SECRET_ACCESS_KEY = '****************************************' 
AWS_SES_REGION_NAME = 'us-west-2' 
AWS_SES_REGION_ENDPOINT = 'email.us-west-2.amazonaws.com' 

され、view.pyは

from django.core.mail import EmailMessage 
from django.core.mail import send_mail 
Megti = '*********' 
Megco = '*********' 
send_mail(
    Megti, 
    Megco, 
    '[email protected]', [aproduct.commail], 
    fail_silently=False) 

です:

SESAddressNotVerifiedError at /success/success 
SESAddressNotVerifiedError: 400 Email address is not verified. 
<ErrorResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/"> 
    <Error> 
    <Type>Sender</Type> 
    <Code>MessageRejected</Code> 
    <Message>Email address is not verified. The following identities failed the check in region US-WEST-2: [email protected]</Message> 
    </Error> 
    <RequestId>3cdc4a07-6523-11e7-b493-1d79005a6fdc</RequestId> 
</ErrorResponse> 

は、誰かが私を助けてもらえますか?

答えて

0

サンドボックスから移動するときは、受信者のメールアドレスのみ確認する必要はありませんが、Sender'sメールを確認する必要があります。

Amazon SES Email Sending Errors

You are trying to send email from an email address or domain that you have not verified with Amazon SES. This error could apply to the "From", "Source", "Sender", or "Return-Path" address.

+0

TKS、私は何を行うことができ、 "アマゾンSESで検証されていない" にメールを送信したい場合は? –

+0

@felixkuo送信者メールは常に確認する必要があります。サンドボックスにいる場合は、未確認のメールアドレスにメールを送信することはできません。サンドボックス外にいる場合は、未確認のメールアドレスにメールを送信できます。 – helloV

関連する問題