Minimal Java program sending a single email via raw HTTP using Java's built-in HttpClient - no SDK required.
- JDK 17+
- Maven 3.8+
- A Keplars API key (get one here)
cd api-example
cp .env.example .envSet your credentials in .env:
API_KEY=kms_your_key_here
TO_EMAIL=recipient@example.com
FROM_EMAIL=hello@yourdomain.comRun:
mvn compile exec:java -Dexec.mainClass=com.keplars.examples.MainMIT