|
|
hai 3 semanas | |
|---|---|---|
| .github | hai 3 semanas | |
| gradle | hai 3 semanas | |
| src | hai 3 semanas | |
| .gitattributes | hai 3 semanas | |
| .gitignore | hai 3 semanas | |
| Dockerfile | hai 3 semanas | |
| README.md | hai 3 semanas | |
| build.gradle | hai 3 semanas | |
| gradlew | hai 3 semanas | |
| gradlew.bat | hai 3 semanas | |
| settings.gradle | hai 3 semanas |
A Spring Boot email service that provides REST API endpoints for sending emails through Gmail SMTP.
[email protected]
email_password=your-gmail-app-password
auth.api=http://your-auth-service-url
./gradlew bootRun
POST /api/mail
Headers:
Authorization: Bearer <token>
Content-Type: application/json
Request:
{
"to": "[email protected]",
"subject": "Subject",
"content": "Email content"
}
Response: 201 Created
docker build -t mail-server .
docker run -p 8080:8080 -e email_username=... -e email_password=... mail-server