• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Email and pdf generation integration

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is a spring boot project making use of the Thymeleaf template engine. I have a project where I can send mail to the hardcoded mail id. The problem is with the pdf generation using Thymeleaf. I am able to create a pdf but it is getting stored in the boot and not in any external folder. I wanted to send the generated pdf along with the mail when I run the program. I have made use of flying saucer for the pdf and below is my code. The problem I am facing is that I am not able to integrate blank generated pdf into the mail sent. Could really use some help with this.

Entity Class:


EmailService Class:


PdfService Class:

Thymeleaf Configuration Class:


Main Class:

Html Template FIle:

 
Bartender
Posts: 2265
13
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic