Click here to Skip to main content
15,890,282 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How Would I generate a pdf doc, and not download it but then send the doc as attachment to an email address, so far I can generate a pdf doc, and I can send an email, for the pdf generator I am using iTextSharp.
Posted

1 solution

Have a look here: Sending an Email in C# with or without attachments: generic routine.[^] It shows you how to attach files and send them. It is probably only a small tweek to your Email code that you need.
 
Share this answer
 
Comments
Ndamulelo Savhase 31-Jul-12 4:01am    
I see but, I can't get to figure out where the generated file at runtime gets attached to the email attachment argument/parameter.
Ndamulelo Savhase 31-Jul-12 4:02am    
This generated file at runtime has to be sent straight as an attachment to an email address, without having first to be loaded or opened.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900