|
|
3 周之前 | |
|---|---|---|
| .github | 3 周之前 | |
| gradle | 3 周之前 | |
| src | 3 周之前 | |
| .gitattributes | 3 周之前 | |
| .gitignore | 3 周之前 | |
| Dockerfile | 3 周之前 | |
| README.md | 3 周之前 | |
| build.gradle | 3 周之前 | |
| gradlew | 3 周之前 | |
| gradlew.bat | 3 周之前 | |
| settings.gradle | 3 周之前 |
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