I searched everywhere, but without finding any solution.
The problem is: I’m trying to send e-mails with attachments from an ASP.NET MVC3 application. The problem is: the attachment is (or should be) a pdf file created with iTextSharp. I already have a method in a Controller that returns an ActionResult, and this method produces a pdf response. The problem is: how can I get teh file from this ActionResult?
I searched everywhere, but without finding any solution. The problem is: I’m trying to
Share
Move your code which generates the PDF fike stream to a method which you can Re Use in many places and use that when creating the attachment
Now you can call this method to create the Attachement