Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8368873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:29:41+00:00 2026-06-09T13:29:41+00:00

I am following this tutorial for sending Emails from My App. When i try

  • 0

I am following this tutorial for sending Emails from My App.

When i try to run this in my emulator its getting error as

08-10 08:40:47.839: W/System.err(526): javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
08-10 08:40:47.849: W/System.err(526):   nested exception is:
08-10 08:40:47.849: W/System.err(526):  java.net.SocketException: Host is unresolved: smtp.gmail.com
08-10 08:40:47.859: W/System.err(526):  at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1391)
08-10 08:40:47.859: W/System.err(526):  at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
08-1 08:40:47.859: W/System.err(526):   at javax.mail.Service.connect(Service.java:310)
08-10 08:40:47.859: W/System.err(526):  at javax.mail.Service.connect(Service.java:169)
08-10 08:40:47.859: W/System.err(526):  at javax.mail.Service.connect(Service.java:118)
08-10 08:40:47.859: W/System.err(526):  at javax.mail.Transport.send0(Transport.java:188)
08-10 08:40:47.859: W/System.err(526):  at javax.mail.Transport.send(Transport.java:118)
08-10 08:40:47.859: W/System.err(526):  at com.mythrii.punchclockpro.Mails.send(Mails.java:107)
08-10 08:40:47.869: W/System.err(526):  at com.mythrii.punchclockpro.login$DownloadImageTask.doInBackground(login.java:277)
08-10 08:40:47.869: W/System.err(526):  at com.mythrii.punchclockpro.login$DownloadImageTask.doInBackground(login.java:1)
08-10 08:40:47.869: W/System.err(526):  at android.os.AsyncTask$2.call(AsyncTask.java:185)
08-10 08:40:47.869: W/System.err(526):  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
08-10 08:40:47.869: W/System.err(526):  at java.util.concurrent.FutureTask.run(FutureTask.java:138)
08-10 08:40:47.869: W/System.err(526):  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
08-10 08:40:47.869: W/System.err(526):  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
08-10 08:40:47.869: W/System.err(526):  at java.lang.Thread.run(Thread.java:1019)
08-10 08:40:47.869: W/System.err(526): Caused by: java.net.SocketException: Host is unresolved: smtp.gmail.com
08-10 08:40:47.869: W/System.err(526):  at java.net.Socket.connect(Socket.java:966)
08-10 08:40:47.880: W/System.err(526):  at java.net.Socket.connect(Socket.java:926)
08-10 08:40:47.880: W/System.err(526):  at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:233)
08-10 08:40:47.880: W/System.err(526):  at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:163)
08-10 08:40:47.880: W/System.err(526):  at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1359)
08-10 08:40:47.880: W/System.err(526):  ... 15 more

I have given all the permissions too.

I am so wonder that the same project running without any errors in my friend system. Is there any external setup for sending mails in my system.

Any suggestions??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:29:43+00:00Added an answer on June 9, 2026 at 1:29 pm

    try ping smtp.gmail.com and make sure you got a response (able to access). Often times, your connection may block by your firewall or proxy behind.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm following this tutorial: http://developer.android.com/training/basics/firstapp/running-app.html#Emulator In it there is a simple code for a
I'm following this Railscast here for sending mails from my rails app. At first
I am following this tutorial, but in Windows. When I run: pdfkit --install-wkhtmltopdf from
Following this tutorial (http://www.asp.net/mvc/tutorials/getting-started-with-ef-using-mvc/handling-concurrency-with-the-entity-framework-in-an-asp-net-mvc-application), I learned how to save data and do concurrency checks
I was following this tutorial: http://www.vogella.com/articles/AndroidLocationAPI/article.html --> Paragraph 6.0 Problem: My emulator runs perfectly
I'm following this amazing nettusts+ tutorial about sending a email to gmail. It aparently
I'm following this tutorial , but it fails when I try to push to
Following this tutorial I got the following error where y = 1; I'm using
I am following this tutorial on sending activation email: http://www.slideshare.net/JamesEdwardGrayII/sending-email-with-rails I am fairly certain
Following this tutorial to the letter, whenever I now run a diff, I get

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.