Emails sent by javamail not arriving

Hi,
I have a webapp running on tomcat, which uses javamail. Tomcat is running on a hosting service. I have javamail pointing to smtp host = localhost. It sends email to gmail and hotmail successfully but it fails for yahoo. I check yahoo and see nothing from my server. I checked my server's inbox and there isn't a message rejected notification from yahoo. Does anyone know why email is successfully getting to other email services like gmail and hotmail but not yahoo.
A snippet of the code sending the email is at the end of this message.
Thanks for your help in advance.
-Anthony
private static final String SMTP_HOST_NAME = "localhost";
     private static final String SMTP_PORT = "25"; // 465
     private static Properties props = new Properties();
     static {
          props.put("mail.smtp.host", SMTP_HOST_NAME);
          props.put("mail.smtp.port", SMTP_PORT);
          props.put("mail.debug", "true");
     public static Message generateMessage(HttpServletRequest request,
               String recipients[], String[] ccs, String[] bccs, String from,
               String subject, String message, String pathToAttachmentFile) throws MessagingException {
          if (recipients == null || recipients.length < 1)
               return null;
          Session session = Session.getDefaultInstance(props);
          session.setDebug(true);
          // contruct Message
          Message msg = new MimeMessage(session);
          InternetAddress addressFrom = new InternetAddress(from);
          msg.setFrom(addressFrom);
          // set receipient email addresses
          InternetAddress[] addressTo = new InternetAddress[recipients.length];
          for (int i = 0; i < recipients.length; i++) {
               addressTo[i] = new InternetAddress(recipients);
          msg.setRecipients(Message.RecipientType.TO, addressTo);

Most likely the spam filter at Yahoo is trapping your message.
Once the message gets to your local mail server, it's out of JavaMail's hands.
You might want to check the logs in your mail server to see if the message is
actually getting sent to Yahoo, or if there's problems at that level.

Similar Messages

  • Running OSX10.6.8 two email account thru Roadrunner. Both accounts now indicate email sent but they never arrive. Can get inbound email.  this start for one account 5 days ago and yesterday for the second account. any suggestions?

    Running OSX10.6.8 two email account thru Roadrunner. Both accounts now indicate email sent but they never arrive. Can get inbound email.  this started for one account 5 days ago and yesterday for the second account. any suggestions?

    When we returned from a weekend trip, both emails were working.  The obvious answer [to me anyway] is that the problem was with Roadrunner, not our minimac. The chances of finding out what the problem was with Roadrunner are slim and none.

  • Email sent with attachments not showing in sent folder

    I have recently found that emails I send with an attachment do not show up in my sent folder. They are arriving at recipient but I do not then have a record of the email sent.  This is really very annoying and I can see a few other poplin online forums are having the same problem.  However nobody seems to have come up with a solution.  It appears I have to cc myself in to the mail and then move it to my sent folder when it arrives. I can't keep doing this.  Other emails without attachments are showing in the sent box.  Does anyone have any idea what I can do to fix this please.

    Didn't work for me... (rebuilding the mailbox)
    I cleaned the Sent mailbox and rebuilt the culprit mailbox and the general "Sent" mailbox.... sent a message.. it 'hung' in the Outgoing Message box for @ 20 seconds and it sounded as if it were sent and when checking the Sent mailbox for that account, it did not show.... I tested this again with another message addressed to myself and it sent as expected and showed in the Sent mailbox for the account... Did another test to a different recipient and the message sent as expected and showed in the Sent mailbox... The only corrollary that exists at this stage, is the recipient of the "disappearing" messages is that I email this particular recipient very regularly and at times with long threads... However, these last messages were completely different subjects and previous replies to this persons email sent as expected.... so this is a random occurrence.
    --prd54usa

  • Emails with large attachments not arriving

    We have an open limit on email size but consistently emails with large attachments do not arrive at the destination (even to the same domain). They do go into the clients sent box. Any thoughts on how to trouble shoot? thanks

    John H wrote:
    The command tells me I have 0 message size limit
    The limit in the admin server is set to 1000MB
    For gigabyte-class file transfers, you'll really want to use a different path — that message size is easily approaching a denial-of-service scale message size, if not exceeded it.
    If you really want to try doing attachments of that size and all the intervening SMTP servers support it, then try setting the message size manually via something like the (untested) following commands:
    sudo postconf -c /Library/Server/Mail/Config/postfix  message_size_limit  -e  "message_size_limit = 10485760"
    sudo postfix reload
    Or to whatever specific attachment size you want to try to use.  The unit is in bytes.
    The other Postfix setting that tends to get involved here is mailbox_size_limit, as well as whatever quotes might be in use for the specific users.

  • I have several email account setup on iphone.  for one of them can receive from/to emails from phone, but emails sent from computer not received on phone.  phone shows receiving but does not come thru

    I have iphone 4s with several email accounts set up.  For one of these accounts, and only one, test emails sent from phone come thru fine.  But computer generated mail doesn't come to phone.  For test messages phone shows "receiving" but nothing comes to inbox.  External sent mail does not  come to phone inbox, but does to outlook on computer.  Have checked settings and these seem correct.  What's up?  Four other accounts work fine.

    If you can send e-mail when on WiFi from home, but not when on 3G, that indicates your email provider is blocking e-mail being sent from outside their network. This is done to control Spam. ISPs who do this will usually have a separate SMTP server that should be used when using a mobile device. Check with them again.

  • HT5622 Trying to reset my security questions. They say they've sent the email but it does not arrive

    Trying to reset security questions. They sat they've sent email. Email does not arrive

    If it hasn't arrived after a few hours and isn't in a spam filter, you need to ask Apple to reset your security questions; ways of doing so include clicking here and picking a method for your country, and filling out and submitting this form.
    (96270)

  • Mail: Why do some emails, sent with attachments, not appear in the Sent category

    Occasionally I will send an email to four different addressees.  The email contains an attachment in pages format, word format and pdf formal.  Though it is sent and though it is received by at least one of those  to whom it is addressed, it does not appear as sent, in the Sent Mailbox.  Why is this and what can be done to get all sent emails to appear as Sent?
    Thank you.
    Otto

    Most mail servers can be accessed in a web browser as well as in Mail. For iCloud, you go here:
    iCloud Mail
    Check for sent messages.

  • Emails sent from Blackberry not appearing in my sent items on my computer?

    Using my Gmail email address...
    When I send an email from my blackberry 8900,
    It isn't showing up in sent items in Mail for mac.
    If someone could help me out that'd be great,
    Its a bit annoying not having it all completely in sync.
    Thanks! 

    I don't know if previously sent items will be migrated over to the server, but once the IMAP settings are in place, any new emails being sent should show up on the mail server.
    Good luck!
    Found this useful?  Don't forget to leave kudos for those who helped you!

  • While traveling in Ireland and riding on hotel WiFi, emails sent from iPhone not always received -- some were, some were not.  All were shown as sent on my iPhone.

    While traveling in Ireland last week, I was using my iPhone 5 to access my incoming email and to send email.  All of my outgoing emails are shown as sent but not all were received.  Not a function of whether emails were replies or particular addressees -- some emails to same addressees received, others not.  Help would be appreciated.

    That sounds like a local WiFi issue...can you login to the email server of your email provider?  If so, you can check and see if the emails you sent reached the server.
    Providers like Verizon, and AT&T, and Comcast in the US have direct login capability for subscribers...there you can check your account activity and see if the emails were received by the server to send on.  The iPhone merely shows you that the email left the iPhone, nothing about what happened after that.

  • Emails sent from iPhone not being received

    I've noticed this happening over the past week or so... Anytime I initiate a new email thread from my Gmail account on my iPhone, the recipient isn't getting it. If I go into Gmail via the web I'll see the email in my Sent Items, but it never arrives. In one instance, I got a bounceback message from the recipient's server, but in the others I haven't gotten anything back. This has happened to at least 5 different email addresses, all with different providers, that I've tried to send to, and needless to say I am sure that all of these addresses are indeed valid recipients.
    I'm already running iPhone OS 3.1...

    If you see it in the gmail sent box on the web, then it was sent.
    It sounds like something you need to talk with google about.

  • Email sent from ipad not posted in Thunderbird "Sent" file

    My iPad and desktop [Thunderbird 3.1.7] sync fine on inbox. But when I send from either, the other does not post the mail in the "Sent" box.

    Thunderbird [desktop] is POP3 which is forwarded to gmail's IMAP. Am I right that Gmail will forward mails sent from the iPad back to T'bird's POP3?

  • Emails sent from device not show in "Sent Box" and "BIS" issue

    Dear All and Rim: 
    New to BB world, needed following help...
    AOL mail box had connect with "Tour" successfully, service provided by Verizon.
    Mails sent from device are not show in AOL "Sent Box" nor Outlook Express's "IMAP" / "POP" server's Outgoing "SMTP" folder.
    Truly need copies to "Sent Box", Thanks for help!!
    Also try to set up "BIS" accout, error message said:
    "Your Account is not accessible via HTML Browser..
    Please use your device to access Black Berry Internet Service"
    I used this link:
    https://bis.na.blackberry.com/html?brand=vzw
    Thanks you,
    Jan
    Solved!
    Go to Solution.

    So for the mail issue seems sending myself a copy is the only way to go, right?
    That would be a solution.
    And about the BIS, my try was on a PC, it didnt work...  Anyway, i was going to log on to the BIS to work on my issue above, but seems it doesnt help now, so it doesnt matter if i can sign up or not.
    Well, that's entirely odd...I just used that link myself (from a PC) and get into my BIS account just fine. You can, however, use the device interface to BIS -- watch that demo I provided you above for instructions on that. BIS is merely a service, provided by your carrier. The PC/website method and the device interface -- those are simply two different interfaces into the same service, so using one or the other doesn't matter...they result in the same thing.
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • When I asked to reset my email the email apple send did not arrive ?

    Woke up and two emails saying your attempt to reset you password has been successful !
    I don't remember doing this when I try to reset again the email never arrives any ideas ?
    How do I change email address of my apple account

    Apple ID: Changing your Apple ID
    http://support.apple.com/kb/HT5621
    Apple ID: What to do after you change your Apple ID
    http://support.apple.com/kb/HT5796

  • E5 - IMAP email (sent mail folder not updating)

    Hello,
    I am having a Nokia E5 phone.
    I have successfully (i guess partial) setup email with my company email domain account (hosted in hostgator) via IMAP and SMTP.
    When I sync, it does retrive emails from inbox but it doesn't show any emails in sent mail folder (IMAP folder).
    However my laptop (running thirderbird) and desktop (running outlook) can show all emails from IMAP sent main folder.
    I have checked on all folder options from Option -> Mailmox settings -> Folder subscription but still only emails from inbox is visible
    Can any one please help me with configuration ??
    Thanks..
    Choto Cheeta

    It's been solved already: https://discussions.apple.com/message/18907234#18907234

  • Embedding image to the email sent through JavaMail

    The code below attaches the gif to the email.
    does anyone know how to embed it?
    MimeBodyPart mbp2 = new MimeBodyPart();
    FileDataSource fds = new FileDataSource("TheFuture.gif");
    mbp2.setFileName(fds.getName());
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setHeader("Content-ID","<23abc@pc27>");
    mp.addBodyPart(mbp2);
    msg.setContent(mp);

    http://java.sun.com/developer/onlineTraining/JavaMail/contents.html#IncludingImagesWithHTML(Warning: the forum software is going to embed some blanks into that link for your improved forum experience. You'll have to edit them out before you can follow the link properly.)

Maybe you are looking for

  • Ppc glibc: problem with kernel-headers dependency

    I wasn't sure where to post this... After attempting to follow the tutorial Wii Tutorial here: http://wiki.archlinux.org/index.php/Wii_Tutorial I discovered that the kernel-headers dependency of glibc is set to the wrong version. The dependency is ke

  • DVD to i-Pod from Gateway Media Center

    Is there a way to download a movie DVD from Gateway Media Center to i-Pod???

  • IPMP error in Solaris 8

    A V890 machine is connected to Cisco switches then link to a Nortel firewall. After configuring IPMP. pc can telnet and ftp to the sun machine without any problem. Host is showing some errors in message files. But IPMP configuration was done similar

  • Columns and Rows for Text (invisible table)

    I am trying to create text on 15 rows in 3 columns in an invisable table for a drinks menu with corresponding drink sizes (ml) and prices. I used the option Type > Area Type Options and added a grid. I encountred 2 problems: Firstly the grid disappea

  • HELP!!! I've tried everything to restore my library

    I've tried every possible action to restore my library - I've located the iTunes library file in my music I've tried to install an older version but it won't let me all of my files are still on my pc but i'm going to lose all my playlists and play co