Issue
I have successfully sent simple email using this:
SimpleMailMessage mailMessage = new SimpleMailMessage();
mailMessage.setTo("[email protected]");
mailMessage.setSubject("This is the test message for testing gmail smtp server using spring mail");
mailMessage.setFrom("[email protected]");
mailMessage.setText("This is the test message for testing gmail smtp server using spring mail. \n" +
"Thanks \n Regards \n Saurabh ");
mailSender.send(mailMessage);
What setting i need to chnage so that i can send html emails
Solution
I don't think that SimpleMailMessage class has such options.
I'm sure that you can do it with JavaMailSender and MimeMessagePreparator, because you need to set MIME content type for HTML.
See this link for help:
http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mail.html
Answered By - danny.lesnik