Integrate with Reloop using Java
Official Java SDK for Reloop. A few lines of code to send production email.
Install
bash
sh.reloop:reloop-emailSend email
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}Popular Java integrations
Send with Java.
Get an API key, verify your domain, and ship transactional email in minutes.