• 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
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Attach PDF In mail

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am using Apache Common mail api to send e-mail and it's working fine.
Now i want to attach pdf as an attachment to the mail, content of attachment is an xhtml page of which I am passing url in my below code.
Actually I am able to attach attachment but the problem is, attachment is attached as .htm but I want as pdf.


Please help me to solve this.
Thanks in Advance.
 
Marshal
Posts: 28193
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Aggarwal Arpit wrote:Now i want to attach pdf as an attachment to the mail, content of attachment is an xhtml page of which I am passing url in my below code.
Actually I am able to attach attachment but the problem is, attachment is attached as .htm but I want as pdf.



I'm not sure I understand this. You're saying you want to attach a PDF file. But in fact you don't have a PDF file, you have an HTML file. And when the recipient opens the attachment, it is surprisingly an HTML file. It almost sounds as if you thought that calling it a PDF file would somehow make it be a PDF file.

So could you clarify your question a bit?
 
reply
    Bookmark Topic Watch Topic
  • New Topic