For my App I am wanting to produce one or more documents that the user can print out. As far as I know there is no way of printing from Android or IOS mobile phones so I thought the best way would be to email the user (from the phone) one or more pdfs to print out from a desktop pc.
So my question is how, in Gideros, can I send an email with attachments (I know about openURL but don't know how to send attachments) OR can anyone else think of another way to supply the user with information to print.
Comments
While you can read the file,
encode into base64 http://alt.textdrive.com/svn/altdev/HTTP/base64.lua,
etc,
I doubt that you can set header's with openUrl.
Another option to check is using SMTP protocol from Lua Sockets, but I haven't studied that yet
@ar2rsawseen: Looks too complicated for openUrl. Might check out Lua Sockets and see what they can do.
@___: I was hoping not to go down the plugin route since that would mean getting something to work on IOS and Android. Always a case of lots to do and not enough time to do it in
http://lua-users.org/lists/lua-l/2005-08/msg00021.html
I always thought that apps are used to handle emails with external email servers, for example gmail. And you simply set up one of the external servers as default to use for Email dialog. I really doubt phone handles emails.
From my perspective what you want to do is to email the docs to the user. Thus you can use your own email server, or free gmail server (as far as I remember gmail supports external smpt connections), connect to it through SMTP and send an email with the doc file to the user email address. All that user will have to provide is the email address where to send the doc file
Gmail is out because they have a limit of 200 emails a day (not very well known) for free accounts. If you go over they freeze your account for 24 hours. If you keep going over they shut you down. I think its to stop spam. I'll look into other free accounts.
Thanks for your help
This says something different :-?
I'd probably setup my own server, and a simple PHP script that sends email with the data POST'ed to it, if I was going this way. Not sure how you would protect it from spammers though.