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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T02:59:48+00:00 2026-06-17T02:59:48+00:00

I am using Java Mail API to send an email. So I am getting

  • 0

I am using Java Mail API to send an email. So I am getting email and password from user, I just want to check the password when they are enter their password, but I don’t get any ideas to verify the password in Java Mail API. Can anyone help?

Question 2:

protected PasswordAuthentication getPasswordAuthentication() 
{
  return new PasswordAuthentication("xxx@gmail.com","*");
} 

What is use of the above the above method

  • 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-17T02:59:49+00:00Added an answer on June 17, 2026 at 2:59 am

    To validate the password you have to use it. You don’t have to send a message, but you do have to connect to the server and authenticate. Use the Transport.connect method. You can close the connection right away if you’re not going to send the message soon, or you can save the Transport object for use later when you send the message and close it when you’re done. Note that if you’re waiting for user input between the Transport.connect (to validate the password) and the Transport.sendMessage (to send the message), the server may time out the connection and you’ll have to reconnect before sending.

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

Sidebar

Related Questions

I am trying to send Email using java mail API from with in a
I am using java to send mail. I want to set the from mail
I'm using Java Mail API and I'm trying to send an email through Gmail's
I am not able to send email from my yahoo id using Java mail
I am on GAE Version 1.7.3 and using java mail api to send the
I am sending email using Java Mail API. When the email is received in
I am using javamail api in java servlet to send mail. It seams to
I am trying to download an attachment from GMAIL using the java mail API,
I'm trying to send an e-mail using the Java mail API. But my e-mail
I have this servlet which needs to send mail using Java Mail API, however

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.