[reloop-email]
Java
Use the Java SDK in Spring Boot or plain JVM apps with Maven or Gradle dependencies.
1
Install the Java package
bash
sh.reloop:reloop-email2
Send email from Java
send_email.java
1import sh.reloop.email.ReloopEmail;2import sh.reloop.email.model.SendEmailRequest;3
4public class Main {5 public static void main(String[] args) throws Exception {6 ReloopEmail reloop = ReloopEmail.client(System.getenv("RELOOP_API_KEY"));7
8 SendEmailRequest request = SendEmailRequest.builder()9 .from("Acme <onboarding@yourdomain.com>")10 .to("delivered@yourdomain.com")11 .subject("Hello from Java")12 .html("<strong>It works!</strong>")13 .build();14
15 var email = reloop.emails().send(request);16 System.out.println("Email sent: " + email.getId());17 }18}3
GitHub, examples, and API reference
4
Need more help?
- Need help? Contact Support.
- Chat with Reloop developers on Discord.
- Check out our changelog.
- Questions? Contact Sales.
- LLM? Read llms.txt.
Java frameworks
Send with Java.
Get an API key and ship transactional email from Java using the official SDK.