Hi,
I have a C# method which returns a Document object, which I stream down to the client machine like this:
Document doc = CreateDocument();
doc.Save(Response, fileName.Text + ".doc", ContentDisposition.Attachment, null);
Works perfectly.
However, my client has now requested the ability to email the Document as a mail attachment without saving it to the client machine or the webserver first, ideally using the AttachmentCollection of the MailMessage object. Is this possible?
Any assistance gratefully received.
Mark