MessagingException: Cannot connect to smtp.gmail.com

Post your questions and help other users.

Moderator: Martin

Post Reply
michael.heuberger
Posts: 27
Joined: 04 Feb 2014 09:19

MessagingException: Cannot connect to smtp.gmail.com

Post by michael.heuberger » 14 May 2014 11:57

Hello there

I already emailed you (Martin) the log files about this one. Just putting it in the forum.

The flow aborted with an exception saying it cannot connect to smtp.gmail.com at port 587. Something with Network is Unreachable which is weird. When I open the Gmail app, it works like a charm.

Any clues?

Michael

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: MessagingException: Cannot connect to smtp.gmail.com

Post by Martin » 14 May 2014 18:23

Hi,

Automagic seems not to be able to connect to the gmail server on your device. Please ensure that your device really has network access. Reboot the device to see if this helps.
Are you using security apps that could block network traffic of other apps?

Regards,
Martin

michael.heuberger
Posts: 27
Joined: 04 Feb 2014 09:19

Re: MessagingException: Cannot connect to smtp.gmail.com

Post by michael.heuberger » 15 May 2014 00:52

Hi Martin

I'm a programmer myself ;)

Of course I checked the connection and rebooted many times. No success.

Still fails to establish a connection to the gmail mail servers. But I can open any webpage on Firefox Mobile. So, it must something inside Automagic.

Cheers
Michael

michael.heuberger
Posts: 27
Joined: 04 Feb 2014 09:19

Re: MessagingException: Cannot connect to smtp.gmail.com

Post by michael.heuberger » 03 Sep 2014 08:31

Hello?

I am still having this issue :(

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: MessagingException: Cannot connect to smtp.gmail.com

Post by Martin » 03 Sep 2014 16:54

Does action Host Reachable with www.google.com and port 80 still fail on WiFi? Does sending the mail on mobile data still work?
Did you try all the suggestions I've sent to you by mail on the 16th Mai?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: MessagingException: Cannot connect to smtp.gmail.com

Post by Martin » 03 Sep 2014 16:59

I didn't see your other post. Let's see if anyone else has a good idea what might causing this issue since I'm somewhat out of ideas.

I still suspect that there is something interfering with the wifi network on your device since Automagic was not even able to create a network connection to www.google.com.
Did you try to disable/uninstall Xposed or any other app/tool that could modify or alter the behavior of the network in any way?

michael.heuberger
Posts: 27
Joined: 04 Feb 2014 09:19

Re: MessagingException: Cannot connect to smtp.gmail.com

Post by michael.heuberger » 04 Sep 2014 00:46

Right, I re-read all our emails and see I gave up at the end.

But now, I still want to fix it. It's bugging me. www.google.com is unreachable with the Host Unreachable action. Weird.

But when I run the gmail app inside my phone, it works fine. It's able to fetch emails from there.

Can you tell me how you have the Host Unreachable action implemented? Any chance you could share me the source code on GitHub or via a secret Gist?

michael.heuberger
Posts: 27
Joined: 04 Feb 2014 09:19

Re: MessagingException: Cannot connect to smtp.gmail.com

Post by michael.heuberger » 04 Sep 2014 00:50

PS: I want to be able to reproduce exactly the same DNS query.

Post Reply