fixed aws email
This commit is contained in:
+1
-1
@@ -792,7 +792,7 @@ class Mail(object):
|
|||||||
from botocore.exceptions import ClientError
|
from botocore.exceptions import ClientError
|
||||||
client = boto3.client('ses')
|
client = boto3.client('ses')
|
||||||
try:
|
try:
|
||||||
raw = payload.as_string()
|
raw = {'Data': payload.as_string()}
|
||||||
response = client.send_raw_email(RawMessage=raw,
|
response = client.send_raw_email(RawMessage=raw,
|
||||||
Source=sender,
|
Source=sender,
|
||||||
Destinations=to)
|
Destinations=to)
|
||||||
|
|||||||
Reference in New Issue
Block a user