Hi .....,
I Need to Export ASPX Page to PDF and Exported PDF Need to send email as attachment
(For Example): Monthly Payements of Telephone Bills Are Send From Their Site on Clicking One Button (Send Bill As PDF to Mail) Once When We Click. Like This i Need to Do Please Can You Share Any Source I Have Tried Using ItextSharp and MemoryStream(bytes) Methods also its Showing Me Mail Sending Failure Due To Attachement is Not Proper
With Regards......,
R.V.Rajagopalan
Loading

Saikiran GstPosted Jun 5, 2014, 12:54 AM
I was referred your code what you posted upto pdf generating is ok but give clarity for after generating pdf how to attach to mail and send for example pdf will generate in byte[] or directly in aspx page to pdf using responsce.output stream concept of taking http link what my dought is how we can attach aspx page generated pdf file to mail as attachment if it possible give solution for this question ...
Avinash AherPosted Jun 4, 2014, 2:30 PM
CREATE PDF USING FOLLOWING
protected void btnCreatePdf_Click(object sender, EventArgs e)
Your ASPX page HTML content
IF YOU WANT SEND THIS PDF VIA SMTP USE FOLLOWING CLASS AND CALL QUICK SEND METHOD WITH PASS REQIRED PARAMETER