Class MailController


  • @Controller
    @RequestMapping("/arms/mail")
    public class MailController
    extends java.lang.Object
    • Constructor Detail

      • MailController

        public MailController()
    • Method Detail

      • sendAllEmailTest

        @PostMapping("/send-all-test")
        public org.springframework.http.ResponseEntity<java.util.List<EmailSendResult>> sendAllEmailTest()
                                                                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • sendTestEmail

        @PostMapping("/send-test")
        public org.springframework.http.ResponseEntity<EmailSendResult> sendTestEmail​(@RequestParam
                                                                                      java.lang.String userEmail)
                                                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • fetchHtmlData

        @GetMapping("/fetch-html-test")
        public org.springframework.http.ResponseEntity<java.lang.String> fetchHtmlData()
                                                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • validateSmtpConfig

        @PostMapping("/validate")
        public org.springframework.http.ResponseEntity<EmailSendResult> validateSmtpConfig​(@RequestBody
                                                                                           SenderDTO senderDTO)
                                                                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • sendEmailsToAllUsers

        @GetMapping("/send-to-registered-users")
        public org.springframework.http.ResponseEntity<java.util.List<EmailSendResult>> sendEmailsToAllUsers()
                                                                                                      throws java.lang.Exception
        Throws:
        java.lang.Exception
      • saveChartImage

        @GetMapping("/save-chart-image")
        public org.springframework.http.ResponseEntity<java.lang.String> saveChartImage()
                                                                                 throws java.lang.Exception
        Throws:
        java.lang.Exception