https://github.com/alokkusingh/email-service
Email Service to send and poll email
https://github.com/alokkusingh/email-service
Last synced: about 1 year ago
JSON representation
Email Service to send and poll email
- Host: GitHub
- URL: https://github.com/alokkusingh/email-service
- Owner: alokkusingh
- Created: 2024-08-18T10:15:02.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-06T07:19:56.000Z (about 1 year ago)
- Last Synced: 2025-04-23T12:18:21.008Z (about 1 year ago)
- Language: Java
- Size: 86.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## SMTP Setup
### Account Setting
https://support.google.com/accounts/answer/185833#zippy=%2Cwhy-you-may-need-an-app-password
### Create App Password
https://myaccount.google.com/apppasswords?rapt=AEjHL4Mu0W7MVeqx15umkEPO5McivQ3nj-YXTgA-nsYeOFNg28V9G8pkhaAZPF5wS5aUXEaZb4oMKJI6zwNFMV4Zq28r96fI6saIz1JN3WuwvcveQILjZQM
## POP/IMAP setup
https://support.google.com/mail/answer/7104828?hl=en
https://dev.to/akinwalehabib/how-to-use-spring-integration-with-mail-endpoint-spring-mvc-mongodb-and-react-3890
### How to run
````
java -jar target/email-service-1.0.0.jar --spring.mail.password= --email.password=
````
#### Build
1. Maven Package
```shell
mvn clean package
```
2. Docker Build, Push & Run
```shell
docker build -t alokkusingh/email-service:latest -t alokkusingh/email-service:2.0.0 --build-arg JAR_FILE=target/email-service-2.0.0.jar .
```
```shell
docker push alokkusingh/email-service:latest
```
```shell
docker push alokkusingh/email-service:2.0.0
```
```shell
docker run -d -p 8081:8081 --rm --name email-service alokkusingh/email-service --spring.mail.password= --email.password=
```
### Test
```shell
curl -X GET http://localhost:8081/home/email/send
```