Click here to Skip to main content
13,050,358 members (138,217 online)
Rate this:
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 20:54pm

1 solution

Rate this: bad
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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 31 Jul 2012
Copyright © CodeProject, 1999-2017
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