applicant-facing-gdo/src/main/java/com/girlsdayout/applicationform/controller/MainController.java
@PostMapping(path="contactus/send")
    public String sendContactMessage(@RequestParam String name, @RequestParam String email, @RequestParam String message){

        //passing user input values from contact us form to notification service to send out email
        notificationService.contactEmail(name, email, message);

        //returns simple page that tells the user the message has been sent.
        return "messagesent.html";
    }
//method that takes the information sent in the contact us form and e-mails it to the GDO contact e-mail.
method that takes the information sent in the contact us form and e-mails it to the GDO contact e-mail.
method that takes the information sent in the contact us form and e - mails it to the GDO contact e - mail .
@PostMapping(path="contactus/send")
    public String sendContactMessage(@RequestParam String name, @RequestParam String email, @RequestParam String message){
        notificationService.contactEmail(name, email, message);
        return "messagesent.html";
    }
@ PostMapping ( path = "contactus/send" ) public String sendContactMessage ( @ RequestParam String name , @ RequestParam String email , @ RequestParam String message ) { notificationService . contactEmail ( name , email , message ) ; return "messagesent.html" ; }
method that takes the information sent in the contact us form and e-mails it to the GDO contact e-mail.
method that takes the information sent in the contact us form and e - mails it to the GDO contact e - mail .
//passing user input values from contact us form to notification service to send out email //returns simple page that tells the user the message has been sent.