Send PDF from app via email

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Send PDF from app via email

Post by maxs » Thu Jul 18, 2013 9:51 pm

Is it possible to send a PDF file stored in an app to someone via email?

Or can a pdf file be printed from an ios app?

Thanks , Max

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Send PDF from app via email

Post by Simon » Thu Jul 18, 2013 10:30 pm

Check out mobileComposeMail in the dictionary.

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

maxs
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 421
Joined: Sat Jun 24, 2006 12:02 am
Contact:

Re: Send PDF from app via email

Post by maxs » Fri Jul 19, 2013 5:28 am

Thank you , Simon

Max

James Little
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 47
Joined: Thu Apr 27, 2006 11:19 pm
Location: Seattle

Re: Send PDF from app via email

Post by James Little » Fri Jul 19, 2013 7:00 pm

I made a beginner mistake with this. I tried to include the file path using "file://" that didn't work. :D Just give the regular path with specialFolderPath.
Also, the standard MIME type for PDF is "application/pdf" not "text/pdf."

Post Reply

Return to “iOS Deployment”