Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Learn how to send your first email using the Emailr Java SDK.
implementation 'com.emailr:emailr-java:+'
import com.emailr.*; public class Main { public static void main(String[] args) { Emailr emailr = new Emailr("em_xxxxxxxxx"); CreateEmailOptions params = CreateEmailOptions.builder() .from("Acme <onboarding@emailr.dev>") .to("delivered@emailr.dev") .subject("it works!") .html("<strong>hello world</strong>") .build(); try { CreateEmailResponse data = emailr.emails().send(params); System.out.println(data.getId()); } catch (EmailrException e) { e.printStackTrace(); } } }