Skip to content

Commit

Permalink
updating README send email example with type (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedroimpulcetto authored Apr 24, 2024
1 parent c460760 commit a339df3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![PyPI](https://img.shields.io/pypi/v/resend)](https://pypi.org/project/resend/)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/resend)](https://pypi.org/project/resend)

---

## Installation
Expand All @@ -29,14 +30,16 @@ resend.api_key = "re_yourkey"

## Example

You can get an overview about all parameters in the [Send Email](https://resend.com/docs/api-reference/emails/send-email) API reference.

```py
import os
import resend

resend.api_key = "re_yourkey"

params = {
"from": "[email protected]",
params: resend.Emails.SendParams = {
"sender": "[email protected]",
"to": ["[email protected]"],
"subject": "hi",
"html": "<strong>hello, world!</strong>",
Expand Down

0 comments on commit a339df3

Please sign in to comment.