Important
This repository has been consolidated into the new resend-examples monorepo, which contains updated examples for all languages and frameworks.
This example shows how to use Resend with Java.
To get the most out of this guide, you’ll need to:
- Add the dependecy to your project:
implementation 'com.resend:resend-java:2.0.0'
Maven:
<dependency>
<groupId>com.resend</groupId>
<artifactId>resend-java</artifactId>
<version>2.0.0</version>
</dependency>
-
Replace
re_123456789on Main with your API key. -
Execute the project by running the Main class
MIT License