Basically It having the scheduler to generator report I have to map to Java Object to email template
[SOLVED] How to create custom template email for spring boot application to generate daily sales report?
Check the below links, there are many resource available, also please, use stackoverflow for such deep programming questions, it’s in rules! I hope you understand.
33. Email 33.1. Introduction 33.2. Usage 33.2.1. Basic MailSender and SimpleMailMessage usage 33.2.2. Using the JavaMailSender and the MimeMessagePreparator 33.3. Using the JavaMail MimeMessageHelper 33.3.1. Sending attachments and inline resources Attachments Inline resources 33.3.2. Creating email content using a templating library A Velocity-based example