Page 1 of 1

Reading an e-mail, including attachments, from the phone

Posted: Sat Sep 17, 2011 5:37 pm
by richervin
Does anyone know how to access the e-mail database on a mobile platform? I want to be able to read e-mail which has already been downloaded, including any attachments, into a LiveCode app

Re: Reading an e-mail, including attachments, from the phone

Posted: Sat Sep 17, 2011 9:18 pm
by Mark
Hi,

Sorry, I'm afraid this is impossible for security reasons. I think that the API only allows for composing and sending e-mail, not for reading e-mail that hasbeen downloaded already. You'll have to make your own e-mail client.

Best,

Mark

Re: Reading an e-mail, including attachments, from the phone

Posted: Mon Sep 19, 2011 3:26 pm
by richervin
If I could make my own e-mail client, then this would not be impossible.

If it is possible to make my own e-mail client, then it would be possible for me to read e-mails in this program.

I'm hoping to find a solution that is simpler than creating my own iPhone and Android specific e-mail clients.

An option would be if the user could launch my app from the e-mail in a way that would give the app access to the e-mail and it's attachment.

The "develop once, run anywhere" solution is looking more dubious every day.

Re: Reading an e-mail, including attachments, from the phone

Posted: Mon Sep 19, 2011 5:08 pm
by FourthWorld
Mark is correct: this is not a LiveCode limitation, but a security decision implemented in the Android APIs.

For details on this, a search for "access email" on developer.android.com yielded some useful discussions:
http://developer.android.com/search.htm ... 0email&t=0

The first three or four links provide good background on the issue.

It seems the solution most folks pursue is to write a custom email app.

Re: Reading an e-mail, including attachments, from the phone

Posted: Mon Sep 19, 2011 5:32 pm
by richervin
Ok, I think I see what you're getting at - that I will have to implement POP or ActiveSync directly in the application, and not read e-mails from the local client applications.

This was my first thought, but I had been looking for another alternative. Maybe there is no alternative.

Next objective - find existing libraries or existing LiveCode features to access email from POP servers.

Re: Reading an e-mail, including attachments, from the phone

Posted: Mon Sep 19, 2011 5:58 pm
by FourthWorld
richervin wrote:Next objective - find existing libraries or existing LiveCode features to access email from POP servers.
http://www.troz.net/rev/index.irev?cate ... ary#stacks

Re: Reading an e-mail, including attachments, from the phone

Posted: Wed Sep 21, 2011 8:42 pm
by richervin
FourthWorld, thanks for that reference. I can now set this aside for later review.

The one thing I was least concerned about (the user interface) has become the thing I am most concerned about, though I am feeling better about it every day.

Re: Reading an e-mail, including attachments, from the phone

Posted: Wed Jun 19, 2019 8:49 pm
by seaniepie
Anyone wanting to access these old Troz stacks should use this link instead:

https://github.com/trozware/rev_stacks

Re: Reading an e-mail, including attachments, from the phone

Posted: Wed Jun 19, 2019 8:51 pm
by seaniepie
This is the POP library referred to:

https://github.com/trozware/rev_stacks/ ... y_demo.rev