Android Question Error sending email

Discussion in 'Android Questions' started by Dman, Feb 6, 2015.

  1. Dman

    Dman Active Member Licensed User

    In my program, I create reports and send them via email. The only problem any of my customers has ever had with it is when they change their gmail password and don't change it in my app. It has been very reliable.

    I have a new customer that has no problem when his tablet is connected to his wifi but when he uses the hotspot from his phone, it gives him an error and doesn't send. He can send emails via gmail fine with it but not directly from my app. He is across the country from me and I have no access to his device.

    Can someone recommend how I could go about checking for the problem?
  2. stevel05

    stevel05 Expert Licensed User

    Have you tried a similar configuration? Does he have a firewall configured on his phone?
    Dman likes this.
  3. lemonisdead

    lemonisdead Well-Known Member Licensed User

    Could it be possible that his ISP is blocking some ports ? Could you check with your customer that he has setup the port 465 (with SSL) or 587 (TLS) ? In fact, I wonder that when he uses the Gmail's app which works even on tether, the app uses the secured ports
    Johan Schoeman, Dman and Beja like this.
  4. Dman

    Dman Active Member Licensed User

    I will check that out. Thanks.
  5. JakeBullet70

    JakeBullet70 Well-Known Member Licensed User

    Also too, have him log into gmail from a browser and check that.
    Dman likes this.
  6. Dman

    Dman Active Member Licensed User

    I am just getting back on this. I have a test email little app that I wrote before and I am going to tweak it to where he can try sending ssl or tls.

    Problem is I know the line for SSL is SMTP.UseSSL = True

    I can't seem to find an example of trying it another way.
  7. giga

    giga Well-Known Member Licensed User

    I agree with lemonisdead, usually there a few problems receiving email. ISP's don't care what you get incoming but outgoing is a different story. ISP's
    normally monitor outgoing ports to prevent spammers.

    A long shot but in testing you could authenticate the outgoing email with his "hotspot" associated email address and password and see if that works.
    Dman likes this.
  8. Dman

    Dman Active Member Licensed User

    OK Sorry for the delay, we have been very busy around here. I am ready to get back on this now. I chatted with the customer today and he told me that he is tethering with bluetooth. I know nothing about tethering and I assumed it was via wifi.
  9. lemonisdead

    lemonisdead Well-Known Member Licensed User

    I have done a test while tethering via Bluetooth and I was able to send an email exactly like with the WiFi one. If this project is very important for you, perhaps should you try using a http job posting to a php script to relay the message. Just a thought
    Johan Schoeman, Dman and Beja like this.
  10. Dman

    Dman Active Member Licensed User

    He can send fine when tethering via wifi, just not bluetooth. He is the only customer that has ever had a problem. He said it is no problem to tether wifi, so there is no hurry right now but I would still like to figure it out. Thanks.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice