To get the most out of this guide, you’ll need to:

1. Install

implementation 'com.resend:resend-java:3.1.0'

2. Send emails using HTML
import com.resend.*;

public class Main {
    public static void main(String[] args) {
        Resend resend = new Resend("re_123456789");

        CreateEmailOptions params = CreateEmailOptions.builder()
                .from("Acme <>")
                .subject("it works!")
                .html("<strong>hello world</strong>")

         try {
            CreateEmailResponse data = client.emails().send(params);
        } catch (ResendException e) {

3. Try it yourself

Java Examples

See the full source code.