From a679210649b600dbee23bad69c9005c38923eebb Mon Sep 17 00:00:00 2001 From: mdipierro Date: Tue, 20 Mar 2018 09:14:05 -0500 Subject: [PATCH] fixed aws email --- gluon/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/tools.py b/gluon/tools.py index 99519330..753408aa 100644 --- a/gluon/tools.py +++ b/gluon/tools.py @@ -792,7 +792,7 @@ class Mail(object): from botocore.exceptions import ClientError client = boto3.client('ses') try: - raw = payload.as_string() + raw = {'Data': payload.as_string()} response = client.send_raw_email(RawMessage=raw, Source=sender, Destinations=to)