Skip to content

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

License

Notifications You must be signed in to change notification settings

cloudintro/springboot-mail-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published