smallintro / springboot-mail-service

Email Sender Service. Upload files and send them in mail as attachments.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spring boot email sender service

docker build -t infointent/email-sender:v1.0 . docker run -d -p 8081:8081 --name email-sender -t infointent/email-sender:v1.0 docker ps docker exec -ti email-sender sh docker stop docker rm docker rmi infointent/email-sender:v1.0 docker rmi $(docker images --filter "dangling=true" -q --no-trunc) docker image prune

Upload file for attachment

Send mail

  {
  "subject": "[Do not reply]Sample email without attachment",
  "body": "Hi, This is sample mail without attachment",
  "to": ["example@example.com"],
  "cc": [],
  "bcc": [],
  "attachments": []
  }
  • Email sender service will
    • validate the request and attachments.
    • compose the email with detail sent in request.
    • attach the file in mail.

Email client app password

  1. Generate Gmail app password
  2. Login to google account security
  3. Enable Two-factor authentication.
  4. Now, Go to App password > select Other > Give any name and click generate.
  5. Copy the generated password and paste in application.properties as value of spring.mail.password

About

Email Sender Service. Upload files and send them in mail as attachments.

License:Apache License 2.0


Languages

Language:Java 95.6%Language:HTML 3.1%Language:Dockerfile 1.3%