Update yaml to include metadata, readme with new directions an

d pseudocode for s3 and SES work
This commit is contained in:
Rebecca Hsieh 2024-02-22 16:51:36 -08:00
parent 2817a3ed5b
commit fb1735e23f
No known key found for this signature in database
4 changed files with 85 additions and 4 deletions

View file

@ -41,6 +41,7 @@ def send_templated_email(template_name: str, subject_template_name: str, to_addr
raise EmailSendingError("Could not access the SES client.") from exc
try:
#if not attachment:
ses_client.send_email(
FromEmailAddress=settings.DEFAULT_FROM_EMAIL,
Destination={"ToAddresses": [to_address]},
@ -51,5 +52,8 @@ def send_templated_email(template_name: str, subject_template_name: str, to_addr
},
},
)
# else: # has attachment
# same as above but figure out how to attach a file
# via boto3 "boto3 SES file attachment"
except Exception as exc:
raise EmailSendingError("Could not send SES email.") from exc