Authentication faild when sending email to yahoo mail

I can not send email to yahoo mail address. The error message is:
javax.mail.MessagingException: 530 authentication required - for help go to http://help.yahoo.com/help/us/mail/pop/pop-11.html
I tried different ways to do the authentication:
1. Create a passwordAuthenticator (extends Authenticator) and set my yahoo userName and yahoo password there.
then use this authenticator to get session:
Session session = Session.getDefaultInstance(props, auth);
I also tried both props.put("mail.smtp.auth",new Boolean(true));
and props.put("mail.smtp.auth",new Boolean(false));
2. using
session.setPasswordAuthentication(new URLName("smtp.mail.yahoo.com"), new
PasswordAuthentication(myYahooUserId, myYahooPasswoed);
3. using Transport instance:
Transport transport = session.getTransport("smtp");
transport.connect(host, myYahooUserName, myYahooPasswoed);
msg.saveChanges();
transport.send(msg);
transport.close();
None of the above approaches are working.
Can any one hlep?
Thanks

I am looking at the last line in step 1 in the code,
and am wondering why the auth is set to false? I am
new to this area, so just curious, not trying to
provide an answer :-)I just tried with Rogers SMTP server, it is OK .. here is my code
Properties props = System.getProperties();
               //Authenticator auth = new
               // -- Attaching to default Session, or we could start a new one --
               props.setProperty("mail.transport.protocol", "smtp");
               props.setProperty("mail.host", smtpServer);
               props.setProperty("mail.user", acctName);
               props.setProperty("mail.password", password);
               props.setProperty("mail.smtp.auth","true");
               Session mailSession = Session.getDefaultInstance(props, null);
               Transport transport = mailSession.getTransport();
               MimeMessage message = new MimeMessage(mailSession);
               message.setContent(subject, "text/plain");
               message.addRecipient(Message.RecipientType.TO,
                    new InternetAddress(to));
               Address replyList[] = { new InternetAddress(from) };
               message.setReplyTo(replyList);
               message.setFrom(new InternetAddress(from));
               //transport.connect();
               transport.connect(smtpServer, acctName, password);
               transport.sendMessage(message,
                    message.getRecipients(Message.RecipientType.TO));
               transport.close();

Similar Messages

  • TS3899 When sending email from the Mail App or through other Apps, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design.

    When sending email from the Mail App or through other Apps on my iPad, my default From: address will change when I enter a To: address.  This sometimes leads me to send the email from the wrong outgoing email account.  It is frustrating and poor design, especially since I had already checked the From: address.
    iPad 4 running iOS 8.1.3

    3rd party email addresses have to be deleted on every synmced mac product, although I have 1and1.co.uk and my imac updatetes the mails in that account from mac mail.
    Yahoo etc is a 2 step deleting process but good to get your emails pushed when on the go.
    LJ
    http://www.facebook.com/The.Cowboy.Party

  • Cannot send emails on Yahoo mail. It works okay with Safari. I set default to Yahoo but still cannot send

    Use MAC. Cannot send emails through Yahoo mail through Firefox but can send through Safari.
    Also issue with Facebook. Using Firefox cannot sign out of account. Can sign out when using Safari.

    Which security software (firewall, anti-virus) do you have?
    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test to see if that helps.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • How can I request a return receipt when sending email from Leopard Mail?

    Has anyone found a way to request return receipts when sending email with Leopard Mail?

    see this [link|http://discussions.apple.com/thread.jspa?messageID=7244096&#7244096].
    However,
    this is only possible if the email client of the e-mail receiver supports this feature and it is turned on. if it doesn't support it or it supports it but the feature is turned off there is absolutely nothing you can do.

  • E-Mail authentication error when sending emails.  Droid X

    Problem:  On one email account I was unable to send e-mail messages.
    Desciption:  Get an authentication error after sending attempts
    Cause:  Unable to access the advanced setting menu for outgoing server
    Reason:  System software version 2.3.340.MB810 does not have the advanced menus.
    Solution: Update Droid X software to version 4.5.596.en.us
    Procedure:
    1.  Go to Settings icon
    2.  Select About Phone (last choice)
    3.  Select System Updates
    4.  Update the software - takes quite a while to download.
    5.  Install software when prompted.
    6.  Go to My Accounts
    7.  Select the problematic E-mail account
    8.  Go to Outgoing Sever
    9.  Go to advance settings   (NEW)
    10.  Select the correct authentication settting per your ISP instructions for the outgoing server.
    PROBLEM SOLVED!

    good post

  • Can't send email on yahoo mail, keeps switching to windows mail and smtp errors ?

    When browsing using Firefox if I try and send URL or email it automatically tries to send it on Windows Mail rather then the Yahoo mail I normally use, then windows mail can't send any email out saying smtp error. Can send yahoo mail fine ?

    http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox

  • Cannot send email from yahoo mail client

    I cannot open or send or attach anything to my email in the yahoo mail.  I know there's nothing wrong with the email because it works on my laptop, just not on my computer.  Could there be a setting problem, or a cookie problem or something?
    I also cannot open Bonjour to see my printer settings.  Everything was working fine yesterday.

    outgoing mail server
    SMTP - Yahoo! SMTP Server
    primary server
    Yahoo! SMTP server - ON
    server port 465
    That's what I have for my yahoo account.

  • Send email through Yahoo mail or Gmail with Java

    I have a java email program that can take a mail host name , port number and then send an email, but I don't want to use the mail host at work, I wonder if I can send email through my Yahoo Mail or Gmail account with Java, do they have any Java API that my program can log me in and send emails ? Any sample code available ? Thanks.
    Frank

    Thanks for reminding me, I did some search on "Yahoo" and "Gmail". For Yahoo someone posted some code that didn't work, for gmail, there seems to be a solution for sending email from command line. I wonder if I can send full fledged email : with CC, BCC, Attachment, Html email with images inside ...
    I've done it with a local mail host, but how to do it with Yahoo or Gmail ?
    Frank
    Have you read the JavaMail FAQ? Search for "Yahoo" and "Gmail".

  • Files corrupting when sending email attachments from Mail & Thunderbird

    Hi All
    I'm hoping that someone will be able to help here as this problem is driving me crazy!
    Most if not all of my email attachments are corrupting when sending from Apple Mail and Thunderbird.  I'm also having issues with publishing files via FTP from Rapidweaver 5!  I have spoken to BT about the issue but they have tested the line and say everything is OK.
    The strange thing is, it's happening on my MacBook Pro (Mountain Lion) and my Mac Pro (Lion). The problem's also happen when I'm using a friends high speed internet connection so that only leaves the server. I'm really out of my depth with the server side of things though. I did have a reply from Servage (my hosting company) who said I may have been the subject of a hack and an upload script!! Not sure what this means or how to check if this is the case. One question though, would this corrupt email attachments as well as uploading to the server?
    Many thanks
    Mark

    Further to the above:  I have now found that the same corruption happens when I email attachments and FTP from my PC laptop, so this rules out a computer issue.  I have also swapped wireless routers and exactly the same problem.  As mentioned above, I don't get the corruption when using another internet connection.
    Also, I have an iPhone which I've restored to factory default settings and when I take a photo with the phone and email it (using my home wireless network), the file corrupts, everytime.
    Using services such as YouSendIt and WeTransfer, gives the same problems!
    I'm desperate for help on this one and I'd even pay someone to resolve it!

  • Authentication error when sending email from workflow but list alters email work fine

    I have a list. When a user enables alert on this list then he/she is able to receive email from SharePoint when someone adds a new item or change item.
    But emails sent by SharePoint workflow or Nintex workflow are not being sent. Error is:
    Error 530 5.7.1 Client was not authenticated
    Why emails are not being sent by workflows?
    EDIT
    And by SharePoint workflow, I mean OOB Publishing workflow.

    Hi Frank,
    For solving your issue , you can do as the followings:
    1. Check all the email addresses are valid and they are not blocked by your SMTP admin
    2. Check firewall settings if emails are blocking by any firewall or antivirus
    3. You need to also check SPLog file if anything log there
    4. Also create simple workflow with SharePoint Designer 2013, and give proper email to check whether it is working or not
    Here is a similar article for you to take a look at:
    http://techsuite.wordpress.com/2008/12/08/workflow-history-the-email-message-cannot-be-sent-make-sure-the-outgoing-email-settings-for-the-server-are-configured-properly/
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Cannot send email through yahoo on iPad 4, apple.smtp.mail.yahoo not available as of December 1, 2012

    I am unable to send emails through yahoo on my ipad 4 wifi, just starting over the weekend. My 3 other non-yahoo email accounts are working fine on my ipad. When I try to send an email from the yahoo account, I receive the message that the connection to the outgoing mail server "apple.smtp.mail.yahoo" failed. I can send email through yahoo just fine on the web and on my computer through Thunderbird.

    Yahoo's been having persistently random issues for months. You can try just waiting it out, or delete and readd your yahoo account. When my accounts were affected I just used webmail to access my yahoo accounts until it cleared up.
    Chances are it's all on their end and really all you can do is wait it out.

  • When I click send link my yahoo mail does come up BUT the link is coming up in the TO box

    I am trying to send a link to my friend and when I click send link my yahoo mail DOES pop up but the link is showing in the TO box
    instead of the body of the message...I have to cut and copy that and put
    in the message body then put the email address in the TO box

    [http://support.mozilla.com/en-US/kb/Changing+the+e-mail+program+used+by+Firefox]

  • Cannot send or receive yahoo mail or gmail from iPhone . installed ios 6 recently. tried rebooting the phone and deleting the email account and adding again but nothing works ! can someone suggest a solution?

    cannot send or receive yahoo mail or gmail from iPhone . installed ios 6 recently. tried rebooting the phone and deleting the email account and adding again but nothing works ! can someone suggest a solution?

    Not sure about yahoo, but for gmail, I done the following:
    Set up using Exchange on iPhone, it'll keep prompting for password.  On PC use captcha option, log in to gmail account from PC after completingg captcha option, enter password on iPhone.
    See how that goes for gmail, let us know.
    Hopefully someone will have fix for yahoo.

  • Problem with Thunderbird email: When I send email using a mailing list, with my email included in the list, the message shows up in my Sent list and others rece

    Problem with Thunderbird email:
    When I send email using a mailing list, with my email included in the list, the message shows up in my Sent list and others receive it but it does not come to my email Inbox. The same problem occurs when I send the email to the mailing list addresses individually. When I send a simple test message to myself, I do receive it in my Inbox. Can you help me??
    Bob Greenman

    Are you using either cc or bcc? Is googlemail involved? Some email providers suppress cc's and bcc's to oneself since you will have a copy in your Sent folder.

  • My mac wont send emails from yahoo or any other websites when using an external USB modem!

    My mac wont send emails from yahoo or any other websites when using an external USB modem! I have checked the settings and they seem correct. Can anyone help? I do not have snow leopard. I can log on my email accounts, open my incoming emails (with difficulty coz it asks me to "try again" ) but I can never send emails, I always get: "sending is taking a little long, try again".
    What is the problem? this is a hair puller !!!

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Reload web page(s) and bypass the cache.
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)

Maybe you are looking for

  • Problem with CheckBox  in Table View

    Hello Friends, Iam using a dropdownlist in which when I select a option (groupid)it displays the corresponding entries in that group in a TableView..there is no problem till here.. For the TableView I have given selectioMode as "MULTISELECT". So it d

  • Server 2008 R2 SP1, BitLocker to go, image restore, Unexpected results

    On Svr 2008 R2 SP1, I wanted to test backup and image restore with a Bitlocker encrypted USB disk. Here's what I did: I turned on encryption on the USB disk, Chose password method and set it to auto-unlock on this computer. Ran a full system backup w

  • ORA-01031:Insufficient Privileges error when I am trying to use ALERT_QUE

    Hi, I am working on SYS.ALERT.QUE for getting system alerts. I am using ODP in C# for connecting to Oracle database with username = SYSTEM, but when I am trying to enque or deque any message from SYS.ALERT.QUE, its gives an error ORA-01031:Insufficie

  • Adobe Acrobat 7 on Windows Vista Home Basic.

    I have windows vista home basic. I need to download adobe acrobat 7 but a message comes on saying it is not compatible to this type of windows. How do I remedy this?  Thanks.

  • Switching between 10.3.9 and 10.5.3

    My emac has System 10.5.3 on it and I have a firewire disk with 10.3.9 on. Is there any way I can switch between the two systems without restarting and changing disks for startup? Thanks, Margit in Minnesota