Android Question Problem to access pop.gmail.com server

gragey

Member
Licensed User
Longtime User
Hello

I use VB4Android 3.00 and Net 1.37 with the progamm POP3 for access personal email
It's never possible to go into the sub : POP_ListCompleted
I ve configure my gmail with Pop protocol
The prograam isat the end of my message.

Sorry for may english
Thank you very much for your response

gragey

Sub Process_Globals
Dim pop As POP3
End Sub
Sub Globals

End Sub
Sub Activity_Create(FirstTime As Boolean)
If FirstTime Then
Log ("Début Init")
pop.UseSSL = True
pop.Initialize("pop.gmail.com", 995, "[email protected]", "password", "pop")
pop.UseSSL = True
End If
pop.ListMessages
End Sub

Sub POP_ListCompleted (Success As Boolean, Messages As Map)
If Success = False Then
Log(LastException.Message)
Else
'download all messages
'change last parameter to True if you want to delete the messages from the server
For i = 0 To Messages.Size - 1
pop.DownloadMessage(Messages.GetKeyAt(i), False)
Next
End If
pop.Close
End Sub
Sub POP_DownloadCompleted (Success As Boolean, MessageId As Int, MessageText As String)
If Success = False Then
Log(LastException.Message)
Else
Log(MessageId)
'Parse the mail
Dim m As Message
m = MailParser.ParseMail(MessageText, File.DirRootExternal)
Log(m)
End If
End Sub

Sub Activity_Pause(UserClosed As Boolean)

End Sub
Sub Activity_Resume

End Sub
 

gragey

Member
Licensed User
Longtime User
Hello

Thank you for mail
No error , nothing appear on the screen or on the emulator before the time out few minutes after
then the mùessage is :

java.net.SocketTimeoutException: Connection timed out

Regards
 
Upvote 0

gragey

Member
Licensed User
Longtime User
Hello

I Think that my mailbox was too important , I've created a new mailbox and now I enter in Sub :
POP_ListCompleted
But now the error is the same than for smtp :

java.net.UnknownHostException: Unable to resolve host "pop.gmail.com": No address associated with hostname

One idea perhaps ?

Regards
 
Upvote 0

gragey

Member
Licensed User
Longtime User
Thank you but i have the same error :
Unable to resolve host "pop.gmail.com": No address associated with hostname

Regards
 
Upvote 0

myriaddev

Active Member
Licensed User
Longtime User
Hi gragey. Use a browser to send an email to your new account, and also use browser to read email.
Some times you may need to open ports and things on your local Lan, or ISP may block.
 
Upvote 0

gragey

Member
Licensed User
Longtime User
Sorry

I've done the action above
It's always the same message on the emulator and on the samsung Android tablet for smtp and pop server

Thanks

Perhaps a problem whith the Net library ...

Bye and Thanks
 
Upvote 0

giga

Well-Known Member
Licensed User
Longtime User
Just a FAR Shot. Since it is not resolving. (This is ONLY a test, Google changes there email server IP's)
from your desktop ping pop.gmail.com and write the IP in as the server instead of the name
do the same again for smtp.gmail.com.

If this works you more than likely have a DNS issue.

Good Luck.
 
Upvote 0

gragey

Member
Licensed User
Longtime User
Thank you

But it's difficult to understand the problem because after modifications, sometimes the new message is :

java.net.SocketTimeoutException: Connection timed out after 1 or 2 minutes

I search ...

Regards
 
Upvote 0

gragey

Member
Licensed User
Longtime User
Hello
In fact, the access at the gmail smtp server is OK at home , the problem is a network problem in my office.
I'll try this evening to connect to the pop.server to receive email ...

Thank you, I close the problem.
 
Upvote 0
Top