For the complete site index, see llms.txt. Docs index: llms-docs.txt. Marketing corpus: llms-full.txt. Docs corpus: llms-full-docs.txt. Prefer markdown URLs where available (append .md).. Product skill: skill.md. Pricing: pricing.md. Docs MCP: /docs/mcp. Site MCP: /mcp.

[Java SDK]

Spring Boot

Integrate Reloop into Spring Boot services with the Java SDK—Maven or Gradle ready.

Step 1

Install the package

Add the official Java client to your Spring Boot project.

bash
sh.reloop:reloop-email

Step 2

Set your API key

Create a free Reloop account, copy your API key, and add it to your Spring Boot environment.

Get an API key free →
bash
RELOOP_API_KEY="re_xxxxxxxx"

Step 3

Send email from Spring Boot

Use this Spring Boot snippet to send your first message. Works with Services · REST Controllers.

send_email.java
1import org.springframework.web.bind.annotation.*;
2import sh.reloop.email.ReloopEmail;
3import sh.reloop.email.model.SendEmailRequest;
4
5@RestController
6public class MailController {
7 private final ReloopEmail reloop =
8 ReloopEmail.client(System.getenv("RELOOP_API_KEY"));
9
10 @PostMapping("/send")
11 public Map<String, String> send(@RequestBody Map<String, String> body)
12 throws Exception {
13 var email = reloop.emails().send(
14 SendEmailRequest.builder()
15 .from("Acme <onboarding@yourdomain.com>")
16 .to(body.get("to"))
17 .subject("Hello from Spring Boot")
18 .html("<strong>It works!</strong>")
19 .build()
20 );
21 return Map.of("id", email.getId());
22 }
23}

Send with Spring Boot.

Get an API key and ship transactional email from Spring Boot using the official Java SDK.