that's how I've done it in the past, but using NSData.FromUrl() are you sure the PDF in "path" is valid?
On Tue, Dec 11, 2012 at 11:44 AM, Matronix <[email protected]> wrote: > I am trying to send a PDF from my app in an email. The email sends > successful and when I look at the PDF attachment in my email (Gmail, > desktop) the attachment looks like a broken image and doesn't have a way to > download the file. If I view the email on the iPad's mail app, the pdf > shows up as an image in the email. How do I successfully attach a PDF to > an > email so that it can be downloaded/viewed on any email client like a normal > emailed attachment? > > > NSData pdf = NSData.FromFile(path); > mailController.AddAttachmentData(pdf, "application/pdf", "Result.pdf"); > > > > > -- > View this message in context: > http://monotouch.2284126.n4.nabble.com/MFMailComposeViewController-AddAttachmentData-PDF-not-working-tp4657826.html > Sent from the MonoTouch mailing list archive at Nabble.com. > _______________________________________________ > MonoTouch mailing list > [email protected] > http://lists.ximian.com/mailman/listinfo/monotouch >
_______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
