SDKs
Java
Coming soonSend email from Java 17+ and Spring applications.
Source codegithub.com/mail-craft/mailcraft-java
PackageNot on Maven Central yet
The Java SDK isn't released yet — this page shows its planned API. You can send from Java today by calling the REST API directly.
Install
pom.xml
<dependency>
<groupId>dev.mailcraft</groupId>
<artifactId>mailcraft-java</artifactId>
<version>0.1.0</version>
</dependency>Send email
Send from a verified sender on one of your domains.
Main.java
MailCraft mailcraft = new MailCraft(System.getenv("MAILCRAFT_API_KEY"));
mailcraft.emails().send(SendEmailRequest.builder()
.from("[email protected]")
.to("[email protected]")
.subject("Welcome!")
.html("<p>Thanks for signing up.</p>")
.build()); Keep your API key in the MAILCRAFT_API_KEY environment variable, never in source control. Create one under Settings → API keys, scoped to just what this app needs.