• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Attach PDF In mail

 
Aggarwal Arpit
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • 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.
 
Paul Clapham
Sheriff
Posts: 20982
31
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • 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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic