Current section
Files
Jump to
Current section
Files
README.md
# resend
[](https://hex.pm/packages/resend)
[](https://hexdocs.pm/resend/)
```sh
gleam add resend@1
```
```gleam
import resend
import resend/emails.{create_email, send_email, with_html}
pub fn main() {
let client =
resend.Resend(api_key: "// Replace this with your resend api key")
create_email(
client:,
from: "from@example.com",
to: ["to@example.com"],
subject: ":)",
)
|> with_html("<p>Email sent</p>")
|> send_email()
}
```
Further documentation can be found at <https://hexdocs.pm/resend>.
## Development
```sh
gleam run # Run the project
gleam test # Run the tests
```