Class MailWriteController

java.lang.Object
deu.cse.spring_webmail.mail.controller.MailWriteController

@Controller public class MailWriteController extends Object
메일 쓰기를 위한 제어기
Author:
Prof.Jong Min Lee
  • Field Details

    • MAX_SIZE

      @Value("${file.max_size}") private String MAX_SIZE
    • emailSender

      private EmailSender emailSender
    • downloadFolder

      @Value("${file.download_folder}") private String downloadFolder
  • Constructor Details

    • MailWriteController

      @Autowired public MailWriteController(EmailSender emailSender)
  • Method Details

    • writeMail

      @GetMapping("/write_mail") public String writeMail(@RequestParam(value="mail",required=false) String mail, org.springframework.ui.Model model)
    • writeMailSuccess

      @GetMapping("/write_mail_success") public String writeMailSuccess()
    • writeMailFail

      @GetMapping("/write_mail_fail") public String writeMailFail(@RequestParam(name="error",required=false) String error, org.springframework.ui.Model model)
    • writeMailDo

      @PostMapping("/write_mail.do") public String writeMailDo(@RequestParam String to, @RequestParam String cc, @RequestParam String subj, @RequestParam String body, @RequestParam(name="file1",required=false) org.springframework.web.multipart.MultipartFile upFile, org.springframework.web.servlet.mvc.support.RedirectAttributes attrs, Principal principal)
    • writeMailEditDo

      @PostMapping("/write_mail_edit.do") public String writeMailEditDo(@RequestParam String to, @RequestParam String cc, @RequestParam String subj, @RequestParam String body, @RequestParam(name="file1",required=false) org.springframework.web.multipart.MultipartFile upFile, @RequestParam String mailUid, @RequestParam String fileName, org.springframework.web.servlet.mvc.support.RedirectAttributes attrs, Principal principal)
    • writeMailTemp

      @PostMapping("write_mail.temp") public String writeMailTemp(@RequestParam String to, @RequestParam String cc, @RequestParam String subj, @RequestParam String body, @RequestParam(name="file1",required=false) org.springframework.web.multipart.MultipartFile upFile, org.springframework.web.servlet.mvc.support.RedirectAttributes attrs, Principal principal)