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?