• 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
  • Paul Clapham
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
Bartenders:
  • Himai Minh
  • Carey Brown
  • Frits Walraven

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: 2101
13
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic