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)

  Print Answers RSS
0 Mika Wendelius 161
1 Abhinav S 115
2 Kornfeld Eliyahu Peter 100
3 Suvendu Shekhar Giri 100
4 Peter Leow 100
0 Sergey Alexandrovich Kryukov 8,513
1 OriginalGriff 6,526
2 Peter Leow 3,657
3 Zoltán Zörgő 3,426
4 Richard MacCutchan 2,417


Advertise | Privacy | Mobile
Web04 | 2.8.150123.1 | Last Updated 31 Jul 2012
Copyright © CodeProject, 1999-2015
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