Dear all,
I've read this (quite old) b4x-post which is very interesting about comunication between android devices :
I've then created a gmail account, downloaded the code posted by Erel, done the necessary modification, and on the gmail side I have activated pop3 and imap.
Sadly, it does not work as expected.
If I use this statement:
pop.Initialize("pop.gmail.com", 995, "myMail@gmail.com", "myPwd", "pop")
I get this error:
java.lang.RuntimeException: Error during login: -ERR [AUTH] Username and password not accepted.
If I use however:
pop.Initialize("imap.gmail.com", 993, "myMail@gmail.com", "myPwd", "pop")
I get this error:
org.apache.commons.net.MalformedServerReplyException: Received invalid POP3 protocol response from server.* OK Gimap ready for requests from 2001:9e8:e5e2:3e00:8c13:4137:80d4:6e5d m23mb120279042wrb
Hence the question: is this method (using pop3 or imap) still a working method to read and write emails from within an android device, or is obsolete ?
In other terms, is there a way to communicate between android devices using e-mail ? If the answer is yes, has anyone a working example I could use as reference ?
Thanks in advance for your attention and have a nice 1st May
Sergio
I've read this (quite old) b4x-post which is very interesting about comunication between android devices :
Using POP3 to communicate with Android devices
Many developers face the challenge of sending data to remote devices. These devices can be at times offline, sleeping or without proper network coverage. There are several possible solutions. The device can contact a web server which will return the required data. Another solution is to use...
www.b4x.com
Sadly, it does not work as expected.
If I use this statement:
pop.Initialize("pop.gmail.com", 995, "myMail@gmail.com", "myPwd", "pop")
I get this error:
java.lang.RuntimeException: Error during login: -ERR [AUTH] Username and password not accepted.
If I use however:
pop.Initialize("imap.gmail.com", 993, "myMail@gmail.com", "myPwd", "pop")
I get this error:
org.apache.commons.net.MalformedServerReplyException: Received invalid POP3 protocol response from server.* OK Gimap ready for requests from 2001:9e8:e5e2:3e00:8c13:4137:80d4:6e5d m23mb120279042wrb
Hence the question: is this method (using pop3 or imap) still a working method to read and write emails from within an android device, or is obsolete ?
In other terms, is there a way to communicate between android devices using e-mail ? If the answer is yes, has anyone a working example I could use as reference ?
Thanks in advance for your attention and have a nice 1st May
Sergio