Package com.getit.todoapp.domain

Examples of com.getit.todoapp.domain.Feedback


  @Autowired
  private EmailService emailService;
 
  @RequestMapping(method = RequestMethod.POST, headers = "Accept=application/json")
    public ResponseEntity<String> createFromJson(@RequestBody String json) {
    Feedback feedback = Feedback.fromJsonToFeedback(json);
        Message message=new Message();
        message.setBody(feedback.getBody());
        message.setReceiverEmail("kiranreddy2004@gmail.com");
        message.setReceiverName("kiran");
        message.setSenderEmail(feedback.getEmail());
        message.setSubject("Todo : feedback");
       
        emailService.send(message);
        HttpHeaders headers = new HttpHeaders();
        headers.add("Content-Type", "application/json");
View Full Code Here

TOP

Related Classes of com.getit.todoapp.domain.Feedback

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.