Send Email with
Java

Use the Java SDK in Spring Boot or plain JVM apps with Maven or Gradle dependencies.

Send your first email

Install the SDK, set your API key, and call emails.send.

sh.reloop:reloop-java:0.1.0
send_email.java
import sh.reloop.Reloop;
import sh.reloop.model.SendEmailRequest;

public class Main {
  public static void main(String[] args) throws Exception {
    Reloop client = new Reloop(System.getenv("RELOOP_API_KEY"));

    SendEmailRequest request = SendEmailRequest.builder()
        .from("Acme <onboarding@yourdomain.com>")
        .to("delivered@yourdomain.com")
        .subject("Hello from Java")
        .html("<strong>It works!</strong>")
        .build();

    var email = client.emails().send(request);
    System.out.println("Email sent: " + email.getId());
  }
}

Built for Java developers

Idiomatic Java client

Follows conventions your team already uses—clear types, predictable errors, and examples that match the official quickstart.

Spring BootMavenGradle

Fast delivery

Messages route through Reloop's edge network for sub-second handoffs and high inbox placement.

Events & webhooks

Track delivered, bounced, and opened events from your Java app with signed webhook payloads.

Production ready

API keys, domain verification, rate limits, and observability—everything you need before going live.

Three steps with Java

1

Install

Run sh.reloop:reloop-java:0.1.0 in your project.

2

Authenticate

Add your Reloop API key from the dashboard and verify a sending domain.

3

Send

Copy the sample above or follow the full Java guide.

Start sending with Java

Get your API key and explore framework-specific tutorials in our documentation.

← All languages