I had a problem like your but using an ANE to send the pdf...and the
solution was correct the mime type of the mail attachment... i put
"application/pdf"...
don't know if it could be the same problem.

Angelo




2014-05-06 17:24 GMT+02:00 FreddyKrueger <[email protected]>:

> Good afternoon.
> I have to save a PDF and send from your mobile device.
>
> I saved and costs.
> Arrives mail without problems.
> But when I try to open the pdf gives me error.
> Reader, tells me that the file is not what was expected and could be
> unencrypted.
>
> I hit you the code. thank infinitely help
> Freddy
>
>
>
> var pdf:PDF = new PDF;
> pdf = new PDF(Orientation.LANDSCAPE, Unit.MM, Size.A4 );
> pdf.setDisplayMode (Display.REAL);
> pdf.addPage();
> pdf.addText('hello nice', 10, 10);
>
> var fs:FileStream = new FileStream();
> var file: File = File.applicationStorageDirectory.resolvePath("a.pdf");
>                                                            fs.open(file,
> FileMode.WRITE);
>                                                            var
> pdfBytes:ByteArray = pdf.save(Method.LOCAL);
>
> fs.writeBytes(pdfBytes);
>                                                            fs.close();
>
> myMailer.sendAttachedMail("[email protected]", " [email protected] ", "test
> smtp",
> "<br>*Picture from HTML :)*", pdfBytes, "a.pdf");
>
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/Flex-movile-save-pdf-and-send-by-mail-Android-IOS-alivePdf-SMTPMailer-tp6391.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Reply via email to