Skip to content

Aethryste/MailingService-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MailingService (template)

Overview

This repo contains a SMTP 'mailing service' template for springboot backends.

Requirements

Please create 'application.properties' in the 'resources' folder and specify the following settings within:

spring.mail.host=YOUR_SMTP_HOST
spring.mail.port=YOUR_SMTP_PORT
spring.mail.username=YOUR_SMTP_USERNAME
spring.mail.password=YOUR_SMTP_PASSWORD
spring.mail.protocol=smtp
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
spring.mail.properties.mail.smtp.ssl.enable=true

Getting Started

  1. Clone the repository.
  2. Install dependencies.
  3. Run Application.java

Usage

To send an email using this service, please send a post request (JSON) using the following format to your spring application:

{
  "to": "example@domain.com",
  "subject": "EmailSubjectHere",
  "body": "The Body of your email goed here!"
}

License

This project is licensed under the MIT License.

About

This repo contains a SMTP 'mailing service' template for springboot backends.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages