Skip to content

CodeDiary18-Study/Spring-Boot-Mail-Sender-Template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Spring Boot Mail Sender Template

Spring Boot๋กœ ์ด๋ฉ”์ผ ์ „์†ก ๊ธฐ๋Šฅ ๊ตฌํ˜„


Development Environment

  • OS : Windows
  • IDE : IntelliJ IDEA Ultimate
  • Language : Java 8(openjdk 1.8)
  • Framework : Spring Boot
  • Build Tool : Gradle
  • WAS : Apache Tomcat 9.0.56

API Introduction

  • ๋ฉ”์ผ ์ „์†ก
    • URL : /mail/send
    • Method : POST
    • Request
      • Content-Type : application/json

      • Body

        Name Type Mandatory Example Description
        toAddress String Y test@gmail.com ๋ฉ”์ผ ๋ฐ›์„ ์ด๋ฉ”์ผ ์ฃผ์†Œ
        title String Y ์ œ๋ชฉ ๋ฉ”์ผ ์ œ๋ชฉ
        content String Y ๋‚ด์šฉ ๋ฉ”์ผ ๋ณธ๋ฌธ
        • example
          {
            "toAddress":"test@gmail.com",
            "title":"์ œ๋ชฉ",
            "content":"๋‚ด์šฉ"
          }
    • Response
      • Content-Type : application/json

      • Body

        Name Type Mandatory Example Description
        isSuccess Boolean Y true ์š”์ฒญ ์„ฑ๊ณต ์—ฌ๋ถ€
        message Object Y ๋ฉ”์ผ ์ „์†ก์— ์„ฑ๊ณตํ–ˆ์Šต๋‹ˆ๋‹ค! ์š”์ฒญ ์ฒ˜๋ฆฌ ๊ฒฐ๊ณผ ๊ด€๋ จ ๋ฉ”์‹œ์ง€
        • example
          โ–ท success case
          {
            "isSuccess" : true,
            "message" : "๋ฉ”์ผ ์ „์†ก์— ์„ฑ๊ณตํ–ˆ์Šต๋‹ˆ๋‹ค!"
          }
          โ–ท fail case
          {
            "isSuccess" : false,
            "message" : "์ด๋ฉ”์ผ ์ „์†กํ•˜๋Š” ๊ณผ์ •์—์„œ ๋ฌธ์ œ๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค."
          }
          {
            "isSuccess": false,
            "message":
            {
              "toAddress": "์˜ฌ๋ฐ”๋ฅธ ํ˜•์‹์˜ ์ด๋ฉ”์ผ ์ฃผ์†Œ์—ฌ์•ผ ํ•ฉ๋‹ˆ๋‹ค",
              "content": "๊ณต๋ฐฑ์ผ ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค"
            }
          }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages