Skip to content

Commit

Permalink
fix: var naming
Browse files Browse the repository at this point in the history
  • Loading branch information
drish committed Apr 22, 2024
1 parent 6c5337a commit 7470c74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/with_attachments.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
).read()

# Define the file attachment
attachments: resend.Attachment = {"filename": "invoice.pdf", "content": list(f)}
attachment: resend.Attachment = {"filename": "invoice.pdf", "content": list(f)}

# Define the email parameters
params: resend.Emails.SendParams = {
"sender": "[email protected]",
"to": ["[email protected]"],
"subject": "hi",
"html": "<strong>hello, world!</strong>",
"attachments": [attachments],
"attachments": [attachment],
}

r = resend.Emails.send(params)
Expand Down

0 comments on commit 7470c74

Please sign in to comment.