diff --git a/examples/with_attachments.py b/examples/with_attachments.py index 51e2c6d..ba1d683 100644 --- a/examples/with_attachments.py +++ b/examples/with_attachments.py @@ -12,7 +12,11 @@ ).read() # Define the file attachment -attachment: resend.Attachment = {"filename": "invoice.pdf", "content": list(f)} +attachment: resend.Attachment = { + "filename": "invoice.pdf", + "content": list(f), + "content_type": "application/pdf", +} # Define the email parameters params: resend.Emails.SendParams = {