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

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
richervin
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 54
Joined: Sat Sep 17, 2011 5:04 pm

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

Post by richervin » Sat Sep 17, 2011 5:37 pm

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
LiveCode 5.1.1 on Mac OS Mountain Lion
Attempting to develop for Android and iPhone
Currently on my third trial, and still finding LiveCode to be difficult for mobile applications in general, and particularly poor for Android

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

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

Post by Mark » Sat Sep 17, 2011 9:18 pm

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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

richervin
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 54
Joined: Sat Sep 17, 2011 5:04 pm

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

Post by richervin » Mon Sep 19, 2011 3:26 pm

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.
LiveCode 5.1.1 on Mac OS Mountain Lion
Attempting to develop for Android and iPhone
Currently on my third trial, and still finding LiveCode to be difficult for mobile applications in general, and particularly poor for Android

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9834
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

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

Post by FourthWorld » Mon Sep 19, 2011 5:08 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richervin
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 54
Joined: Sat Sep 17, 2011 5:04 pm

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

Post by richervin » Mon Sep 19, 2011 5:32 pm

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.
LiveCode 5.1.1 on Mac OS Mountain Lion
Attempting to develop for Android and iPhone
Currently on my third trial, and still finding LiveCode to be difficult for mobile applications in general, and particularly poor for Android

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9834
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

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

Post by FourthWorld » Mon Sep 19, 2011 5:58 pm

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
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richervin
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 54
Joined: Sat Sep 17, 2011 5:04 pm

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

Post by richervin » Wed Sep 21, 2011 8:42 pm

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.
LiveCode 5.1.1 on Mac OS Mountain Lion
Attempting to develop for Android and iPhone
Currently on my third trial, and still finding LiveCode to be difficult for mobile applications in general, and particularly poor for Android

seaniepie
Posts: 154
Joined: Wed Sep 07, 2011 10:56 am

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

Post by seaniepie » Wed Jun 19, 2019 8:49 pm

Anyone wanting to access these old Troz stacks should use this link instead:

https://github.com/trozware/rev_stacks

seaniepie
Posts: 154
Joined: Wed Sep 07, 2011 10:56 am

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

Post by seaniepie » Wed Jun 19, 2019 8:51 pm

This is the POP library referred to:

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

Post Reply

Return to “Internet”