A wrapper utility library to send email using jakarta.mail. The postman always rings twice.
Find a file
2026-06-28 19:47:39 +09:00
.idea Add initial project structure with email sending functionality 2026-06-28 19:26:14 +09:00
.vscode Add initial project structure with email sending functionality 2026-06-28 19:26:14 +09:00
gradle Add initial project structure with email sending functionality 2026-06-28 19:26:14 +09:00
the-postman-always-rings-twice Update test email details and README usage example for clarity 2026-06-28 19:46:22 +09:00
.gitattributes Add initial project structure with email sending functionality 2026-06-28 19:26:14 +09:00
.gitignore Add initial project structure with email sending functionality 2026-06-28 19:26:14 +09:00
AGENTS.md Add initial project structure with email sending functionality 2026-06-28 19:26:14 +09:00
gradle.properties Add initial project structure with email sending functionality 2026-06-28 19:26:14 +09:00
gradlew Add initial project structure with email sending functionality 2026-06-28 19:26:14 +09:00
gradlew.bat Add initial project structure with email sending functionality 2026-06-28 19:26:14 +09:00
LICENSE Add initial project structure with email sending functionality 2026-06-28 19:26:14 +09:00
postman.png Add initial project structure with email sending functionality 2026-06-28 19:26:14 +09:00
README.md Update test email details and README usage example for clarity 2026-06-28 19:47:39 +09:00
REQUIREMENTS.md Add initial project structure with email sending functionality 2026-06-28 19:26:14 +09:00
settings.gradle.kts Add initial project structure with email sending functionality 2026-06-28 19:26:14 +09:00

The Postman

The postman always rings twice.

postman

기존 javax.mail / jakarta.mail이 가진 복잡한 상용구 코드(Boilerplate code)를 제거하고, 개발자가 직관적이고 직관적인 코드로 이메일을 발송할 수 있도록 돕는 래퍼(Wrapper) 라이브러리

사용 예시

repositories {
    maven {
        name = "Elex Repository"
        url = "https://artifacts.elex-project.com/repository/maven/"
    }
}
dependencies {
    implementation("com.elex_project:postman:1.0.0")
    runtimeOnly("org.eclipse.angus:jakarta.mail:2.0.5")
}
EmailResult result = Postman.of(MailConfig.of(MailProvider.GMAIL)
        .credentials("user001", "SECRET_APP_PW")
        .senderName("Elex"))
        .send(EmailMessage.of()
                .from("sender@example.com")
                .to("receiver@example.com")
                .subject("Not-important test message 2")
                .content("<p>Hello, world!</p>", true)
                .attach(new File("../README.md")));

Copyright © 2026 Elex. All rights reserved.