Email Authentication not working

i have tried the following code but it doesn't seem to work:
Properties props = new Properties();
props.put("mail.smtp.host", host);
props.put("mail.smtp.auth", "true");
// inner class
class OK_Authenticator extends Authenticator {
public javax.mail.PasswordAuthentication getPasswordAuthentication(){
return new javax.mail.PasswordAuthentication("username","password");
Session session = Session.getDefaultInstance(props, new OK_Authenticator());
Authentication failed error.
Do i have to change the settings of the mail server as well.
Please help me out.
Suren
[email protected]

Hello,
I've met the same Authentication Failed exception before, even after I've added an OK_Authenticator.
I put in my IMAP server's username/password, and it failed. I suspect the problem came from my username/password pairs. Maybe the username/password pairs of IMAP server different from SMTP server or POP3 server ? Do you use IMAP or POP3 server username/password like me ?
CMLAM88

Similar Messages

  • Apple ID email authentication not working

    Hi - My husband has been down a rabbit hole of nonsense ever since restoring his iPhone. He's been locked out of iTunes on his phone b/c it says it's associated with another device. Suggested by Apple to create a new apple ID and change on devices. Now he can't get in, PW reset questions say he has wrong answers, and email authentication emails never reach his inbox. Trying old and new IDs. I tried to have email auth sent to my email using my acct ID and it doesn't come. Checked spam. Checked Apple and Apple ID service is not shown as being down. Btw - he paid $20 for phone support and was disconnected after being on hold waiting for a supervisor for 30 minutes. Ready to go to Android. Both of us. His contract is up and mine is up in Nov.

    I have been attempting this since November 17 in the evening.  I've been trying to get help on the support line but no one is helping.  I get the same message not matter what e-mail address I try to use to set up an Apple Id.  We tried in my name with my e-mail address and my husband's name with his e-mail address.  When the e-mail comes to verifty, my results are:   "This e-mail address is already in use or you may already have........"  Same problem.  Has anyone been able to get some acknowledgement from support that there is a problem?

  • [svn] 1720: Bugs: LCDS-304 - Authentication not working in all cases when using security constraint with NIO endpoints .

    Revision: 1720
    Author: [email protected]
    Date: 2008-05-14 14:50:06 -0700 (Wed, 14 May 2008)
    Log Message:
    Bugs: LCDS-304 - Authentication not working in all cases when using security constraint with NIO endpoints.
    QA: Yes
    Doc: No
    Details:
    Update to the TomcatLoginCommand to work correctly with NIO endpoints.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-304
    Modified Paths:
    blazeds/branches/3.0.x/modules/opt/src/tomcat/flex/messaging/security/TomcatLoginCommand. java

    Revision: 1720
    Author: [email protected]
    Date: 2008-05-14 14:50:06 -0700 (Wed, 14 May 2008)
    Log Message:
    Bugs: LCDS-304 - Authentication not working in all cases when using security constraint with NIO endpoints.
    QA: Yes
    Doc: No
    Details:
    Update to the TomcatLoginCommand to work correctly with NIO endpoints.
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-304
    Modified Paths:
    blazeds/branches/3.0.x/modules/opt/src/tomcat/flex/messaging/security/TomcatLoginCommand. java

  • TS3276 my server went down and now my email is not working, can anyone help please?

    My website server went down and now my email is not working (though the server is back up)
    Does anyone know what I need to do?
    I'm told by my website hosts that I need to 'reconfigure authentication" but I have no idea how to do this, they are now closed for the weekend and I need it fixed before Monday morning. Could anyone tell me where to find step by step instructions. I've tried but have made matters worse and the couple of mail accounts that WERE still receiving email are now also not.
    Help please!

    Hi Eyen80,
    If you are having issues with your iPhone’s camera not functioning, you may want to troubleshoot using the steps in this article -
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Specifically -
    Camera isn't functioning or has undesired image quality
    If the screen shows a closed lens or black image, force quit the Camera app.
    If you do not see the Camera app on the Home screen, try searching for it in Spotlight. If the camera does not show up in the search, check to make sure that Restrictions are not turned on by tappingSettings > General > Restrictions.
    Ensure the camera lens is clean and free from any obstructions. Use a microfiber polishing cloth to clean the lens.
    Cases can interfere with the camera and the flash. Try gently cleaning the lens with a clean dry cloth or removing the case if you see image or color-quality issues with photos.
    Try turning iPhone off and then back on.
    Tap to focus the camera on the subject. The image may pulse or briefly go in and out of focus as it adjusts.
    Try to remain steady while focusing:
    Still images: Remain steady while taking the picture. If you move too far in any direction, the camera automatically refocuses to the center.
    Note: If you take a picture with iPhone turned sideways, it is automatically saved in landscape orientation.
    Video: Adjust focus before you begin recording. You can also tap to readjust focus while recording. Exiting the Camera application while recording will stop recording and will save the video to the Camera Roll.
    Note: Video-recording features are not available on original iPhone or iPhone 3G.
    If your iPhone has a front and rear camera, try switching between them to verify if the issue persists on both.
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • Exchange email will not work when offline

    Anyone know when Apple will fix this issue?  Email will not work correctly unless connected to wireless.  This makes it impossible to be productive while flying.  This is exclusive to exchange servers as it woks on POP accounts.  

    I know that.  When I work on my laptop I can file, reply, delete etc. and when I land it updates all the folders and sends and recevies all the mail.  the iPad will not let you file or delete emails unless connected.  This makes flying time completely unproductive.  If I have to have a laptop to do email why have an iPad???

  • My iCloud email does not work. Getting error message that i need to uncheck SSL . This does not work. Help

    icloud Email does not work. When running Connection doctor it indicates I must check or uncheck SSL. This has not fixed the problem

    iCloud email addresses (@mac.com, @me.com and @icloud.com) require SSL. Is your address an iCloud address or someone else?

  • My icloud email is not working on any of my devices (pc, iphone, ipad).  For 2 days now.    Any suggestions?

    My icloud email is not working on any of my devices (iphone 4s, ipad, pc).   For 2 days now.    Any suggestions?

    I have the same problem.  I called Apple this morning, they told me that they restored "half" of the people affected last night and the next update will be 11 am EST.  Very frustrating to say the least!

  • Email is not working properly and dvr is freezing.

    I never thought I would say this but I am considering going back to cable. I have been calling verizon for 2 weeks now. My email is not working. I did not get any email for about 3 days, then when I called I got a couple (I normally get about 70 per day). Now I get 3 or 4 a day and it seems I have to call them daily. Their server is rejecting emails. I have many things I am waiting for (business contracts, etc) and I am not getting them. CLients are telling me that their emails are being rejected by verizons servers. I am not getting any answers from verizon. All that happens is when I complain, I get email for about an hour (sporadically) and then it stops again. I have really had enough of it at this point. And the DVR freezing for the last several months.. well that is another issue. It is time to look into optimum again

    Hi mooster --  I sent you a private message so I can get some more information about the problems you're having and so we can figure out what's going on.  Please get back to me when you're able.  Thanks!
    Karl
    Verizon Support
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or Plan.

  • HT4623 My iPhone4s updated to 7.1.1 and now my internet and email is not working. I need help?

    Sorry, I'm new to this, I installed IOS 7.1.1 on my iPhone 4s and now my internet and email is not working. 
    I have googled this on my computer and can't find any reference to this sort of problem.
    I need help. 
    Thanks in advance. 

    Try this:
    Go to Settings > General > Reset > Reset Network Settings
    See if you are able to connect now.

  • Hello everybody,i've forgot my apple password and i wanted to reset it to a new one but i also forgot the security question and the alternative email does not work and i am really need to log in to my apple i d because my iPhone 4g won't  let me access it

    Hello everybody,i've forgot my apple password and i wanted to reset it to a new one but i also forgot the security question and the alternative email does not work and i am really need to log in to my apple i d because my iPhone 4g won't  let me access it so anyone can help me with it or can i put another apple id to it without putting the first password?THANKS FOR YOUR HELP.

    Then call AppleCare and talk to someone in account security.

  • Share option for email does not work after Yosemite upgrade.

    Hi,
    Does anybody know why the share option, "Share via email" does not work anymore after Yosemite upgrade?  I love this feature.  It's just quick and easy.
    Rod.

    On Yosemite, Pages '09 v4.3 no longer recognizes the Share > Send Via Email categories. You will have to export and manually drag/drop/attach documents to Mail. There is no fix.

  • Can't sync ical on my iphone and imac. email and note work but not ical.  can anyone help.

    can't sync ical on my iphone and imac. email and note work but not ical.  can anyone help.
    thanks
    bmoreimac

    So how can i make it work that way, i asked one of my friends, and she says it works like that...when she delete the email on her iphone it is deleted on the mac too, what do i do to change this?....my mail it's hotmail, i don't know if its relevant

  • I called Verizon prior to travelling abroad and asked to turn roaming on. As of today, 4 days later, I have no service. I do not have a landline to call. GlobalServices email does not work... Does anybody know how to reach customer support via email?

    I called Verizon prior to travelling abroad and asked to turn roaming on. As of today, 4 days later, I have no service. I do not have a landline to call support. GlobalServices email does not work... Does anybody know how to reach customer support via email?

        Hi Florence2014
    I'm so sorry your having issues. Unfortunately there isn't an email for global support. The only way way to reach them while traveling is to call them at 908-559-4899.
    JoeL_VZW
    Follow us on Twitter @VZWSupport

  • I create cloud ID long time ago. My cloud ID is email. This email is not working now. I cant check inbox. How I can reset password in this case?

    I create cloud ID long time ago. My cloud ID is email. This email is not working now. I cant check inbox. How I can reset password in this case?

    https://appleid.apple.com

  • Cableone innstalled a new server and now my thunderbird email will not work. What do I do now?

    Cableone, our internet provider, has changed from a Google server to their own server and now my Thunderbird email will not work. They have directions listed to make it work, but this does not work. I have also contacted Cableone's technical support and they say because thunderbird is not their system they have no responsibility to make it work. I prefer to use Thunderbird for my email - how can I make it work? Also, I have tried the Thunderbird 'Automatic Account Configuration' help and it does not work.

    Ask your less than helpful provider for the server settings and setup the new account up manually.
    You want to know IMAP or POP and the name of the server. The port number and if it uses SSL/TLS security.
    You need the same info for the SMTP server for outbound mail.

Maybe you are looking for

  • Silent Uninstall Switch for FlashUtil32_11_4_402_278_ActiveX.exe

    I know I can run 'FlashUtil32_11_4_402_278_ActiveX.exe' (found in 'C:\Windows\System32\Macromed\Flash') manually, but I'd like to automate the removal process to avoid having the user click on anything.  (I want zero user interaction!) Are there any

  • PB G4 Display Won't Stay Closed

    The display on my PB G4 won't stay closed. There seems to be something wrong with the latch, as it won't catch (or stay caught) when the display is closed. Any thoughts on how to fix this annoyance? Thanks.

  • Errors in implementation project

    hi experts, I am new to implementation project. we r implementing to a big client, i need to know the recent advances of possible errors that may occur during my project. So, plz kindly try to help with handing documents related to the erros. so i ma

  • Account Assignment Group in DBM Order

    Hey Experts, When I change the account assignment group (AcctAssgGr) in DBM order split screen for the customer in the transaction level it is not taking the changed accont assignment group. Basically I want to overwrite the account assignment group

  • Why are my QT file sizes shrinking?

    I'm using the copy/paste features of QuickTime to put together four small pieces of my movie into one big piece. I do this by opening up all four QT files and then copying the entire contents of each of the final three QT files and pasting them all,