Use cases

Common email jobs.

Pick the situation closest to yours. Each route links directly to the message API, configuration, security settings, and optional modules involved.

01 · Message structure

Build messages that render correctly.

Declare plain text, HTML, inline images, attachments, or calendar events and Simple Java Mail builds the MIME tree mail clients expect. Your code does not have to assemble multipart nesting, content IDs, transfer encoding, and transport plumbing by hand.

03 · Sustained load

Handle high throughput.

When several workers send continuously, use bounded worker threads and reuse physical SMTP connections in a pool. Cluster keys can keep workloads separate or spread one workload over several SMTP servers.

05 · Application fit

Fit an existing application.

Configure a mailer in Java, properties, environment variables, or Spring. You can also supply your own Jakarta Mail Session, work through an authenticated SOCKS proxy, or send and test from the command line.