Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 30-Jul-12 21:54pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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.
  Permalink  
Comments
Ndamulelo Savhase at 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 at 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)



Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 31 Jul 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100