-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating README send email example with type (#80)
- Loading branch information
1 parent
c460760
commit a339df3
Showing
1 changed file
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
[](https://opensource.org/licenses/MIT) | ||
[](https://pypi.org/project/resend/) | ||
[](https://pypi.org/project/resend) | ||
|
||
--- | ||
|
||
## Installation | ||
|
@@ -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>", | ||
|