A wrapper utility library to send email using
jakarta.mail.
The postman always rings twice.
- Java 100%
| .idea | ||
| .vscode | ||
| gradle | ||
| the-postman-always-rings-twice | ||
| .gitattributes | ||
| .gitignore | ||
| AGENTS.md | ||
| gradle.properties | ||
| gradlew | ||
| gradlew.bat | ||
| LICENSE | ||
| postman.png | ||
| README.md | ||
| REQUIREMENTS.md | ||
| settings.gradle.kts | ||
The Postman
The postman always rings twice.
기존 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.
