Skip to content

Commit

Permalink
configure mime type
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbalcaen committed May 2, 2024
1 parent 390fd78 commit 7f0263f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lambdas/email_sender/src/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ def lambda_handler(event, context):
subject = event['subject']
body = event['body']
attachment_s3_arns = event.get('attachment_s3_arns', [])
multipart_mime_type = event.get('multipart_mime_type', 'mixed')

ses = boto3.client('ses')
s3 = boto3.client('s3')

msg = MIMEMultipart('alternative')
msg = MIMEMultipart(multipart_mime_type)
msg['Subject'] = subject
msg['From'] = sender_email
msg['To'] = destination_email
Expand Down

0 comments on commit 7f0263f

Please sign in to comment.