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 3613032
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T22:04:24+00:00 2026-05-18T22:04:24+00:00

I was wondering if anyone might be able to explain to me why it’s

  • 0

I was wondering if anyone might be able to explain to me why it’s taking nearly 30 seconds each time my Java web app sends an email using Gmail’s SMTP server? See the following timestamps:

13/04/2010-22:24:27:281 DEBUG test.service.impl.SynchronousEmailService – Before sending mail.
13/04/2010-22:24:52:625 DEBUG test.service.impl.SynchronousEmailService – After sending mail.

I’m using spring’s JavaMailSender class with the following settings:

email.host=smtp.gmail.com

email.username=myaccount@gmail.com
email.password=mypassword
email.port=465
mail.smtp.auth.required=true

Note that the mail is getting sent and I’m receiving it fine, there’s just this delay which is resulting in a slow experience for the application user.

If you know how I can diagnose the problem myself that would be good too 🙂

  • 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-05-18T22:04:25+00:00Added an answer on May 18, 2026 at 10:04 pm

    It might be that gmail uses this delay to prevent spammers from using their SMTP server from the “outside”: if the SMTP is called from the actual webmail client it would not use this delay.
    In order to test this, you could open a telnet session to port 25 and do a manual SMTP session
    (Search the web for SMTP HELO for examples)

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

Sidebar

Related Questions

I'm struggling getting some unit tests running and wondering if anyone might have anything
I might be doing a coding competition soon, I was wondering if anyone made
I am new to the search-engine scene and I was wondering if anyone might
I was wondering if anyone might know how to import the contents of a
I'm wondering if anyone has experience using Ransack with HABTM relationships. My app has
I was wondering if any one here might be able to help me out
this is more a question about design application. I was wondering if anyone might
I have a text file, I was wondering anyone have a batch file to
Wondering if anyone can suggest a good file replication tool that will replicate across
Was wondering if anyone knew how to implement arrows in the bottom toolbar as

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.