0

by using above code i send the mail, body with normal text. now i want to send the mail with html content as body any suggestions appriciate.

public void sendMail() {
                SimpleMailMessage message = new SimpleMailMessage();
                message.setFrom("xxxxxxxxxxxx@gmail.com");
                message.setTo("xxxxxxx.yyyyyy@gmail.com");
                message.setSubject("Hi");
                message.setText("Welcome to FoodeeBuddee");
                javaMailSender.send(message)
            }
Rajesh Mungara
  • 61
  • 1
  • 2
  • 7

1 Answers1

0

You can create mail using velocity template refer to 24.3.2 Creating email content using a velocity template library for more doc detail.

Jigar Parekh
  • 6,163
  • 7
  • 44
  • 64