Where are the Bounced Back Emails?

Pardon the cross-posting, since I didn't get any responses in the JavaMial Forum.
====================================
Hi Java Gurus:
My application sends emails using JavaMail API. I am not receiving any bounced back emails though. What do I have to do to get them? Here's my code:
     // Builds and mails the message
     public boolean mailEm()
          // Get system properties
          Properties props = System.getProperties();
          // Setup mail server
          props.put("mail.smtp.host", smtpHost);
          props.put("mail.smtp.auth", "true");
          // Get session
          Session session = Session.getInstance(props,
                     new MyAthenticator(System.getProperty("user.name"), ""));
          session.setDebug(true);
          // Define message
          MimeMessage message = new MimeMessage(session);
          // Build mail message and send
          try
               // Create an internet address for sender
               InternetAddress addrFROM=new InternetAddress(System.getProperty("user.name"));
               // Build recipients list
               int numRecipients = addresses.size();
               InternetAddress[] address = new InternetAddress[numRecipients];
               for (int ii = 0; ii < addresses.size(); ii++)
                    address[ii] = new InternetAddress((String)(addresses.get(ii)));
               // Set message recipients
              message.setRecipients(Message.RecipientType.TO, address);
               // Set message sender
               message.setFrom(addrFROM);
         Address[] addresses = new Address[1];
         addresses[0] = (Address) addrFROM;
         message.setReplyTo(addresses);
               // Cycle for each file in the list
               for (int ii = 0; ii < filesToMail.size(); ii++)
                    message.setSubject(subject + " (Email " + (ii+1) +
                                                  " of " + (filesToMail.size()) + ")");
                   // create and fill the first message part
                   MimeBodyPart mbp1 = new MimeBodyPart();
                   mbp1.setText(messageText);
                   // create the second message part
                   MimeBodyPart mbp2 = new MimeBodyPart();
                   // attach the file to the message
                  FileDataSource fds = new FileDataSource((File) filesToMail.get(ii));
                   mbp2.setDataHandler(new DataHandler(fds));
                   mbp2.setFileName(fds.getName());
                   // create the Multipart message and its parts to it
                   Multipart mp = new MimeMultipart();
                   mp.addBodyPart(mbp1);
                   mp.addBodyPart(mbp2);
                   // add the Multipart to the message
                   message.setContent(mp);
                   // set the Date: header
                   message.setSentDate(new Date());
                   // send the message
                    Transport transport = session.getTransport("smtp");
                    transport.connect(smtpHost, System.getProperty("user.name"), "");
                    transport.send(message);
          catch( Exception ex)
               System.out.println(ex);
               ex.printStackTrace();
         return false;
      return true;
     }

exactely.. use the socket to connect to the SMTP server and send your message that way. Throw the API away. You can request for error e-mail and receipts and stuff when sending the "MAIL FROM:<email>" tihng.
Rival

Similar Messages

  • When you sync your iPhone 4S with a windows computer , where are the contacts backed up to

    When you sync your iPhone 4S with a windows computer , where are the contacts backed up to

    Take a look at this Apple doc -> iTunes: About iOS backups
    It shows the locations of backups and how to use them with iTunes.

  • DIsk Utility fail: Where are the "temporary back up files" ?

    I was running out of space on my hard drive, so i freed up 50G by backing up and then deleting some photo and video files. I thought, like on a PC, i could run the disk utility to "erase free space" (and possible give me even more free G's) but it got stuck near the end, saying there was no longer enough disc space to continue. I deleted some more files, but it didn't help. Now my hard drive is COMPLETELY FULL (when I use inspector, it literally says "Available: Zero KB"). I think disk utility was making a temporary backup file, and that's what used up all of my free space (although I might be wrong), and sinbce it didnt finish the job, the files are still on the computer taking up unnecessary space. But now i have no idea where all of those files are! Where should they be stored? I need to free up some space ASAP! I'm a Graphic Designer, and I need this computer for work, asap.
    Is there perhaps a free program that will show me a full look at my HD space, and say which files are taking up the most space, so that I can delete -or back up- accordingly? Or maybe one that will delete unnecessary cached files or something.... I'm in panic mode!
    Thank you so much in advance for your time and help!

    Sarah CMac wrote:
    I dont understand how to carry out the action that the article mentions. I dont know where to find "/var/root/Library/Caches" no do i know what to do with "sudo rm -f /var/root/Library/Caches/TemporaryItems/*"
    This is serious greek. Can you explain what I should do with this information, please?
    Sorry, I hadn't looked at that in a while.
    Open the Terminal app (in your Applications/Utilities folder). Be *very careful* with this app. It's a direct link into UNIX, the underpinnings of OSX, but without the protections of OSX.
    In Terminal, the prompt looks like this: user-xxxxxx:~ <your name>$
    (where <your name> is your short user name). It's followed by a non-blinking block cursor.
    Copy the following after the prompt:
    sudo rm -f /var/root/Library/Caches/TemporaryItems/*
    and press Return. It should then ask for your Admin password (which won't be displayed). Press Return again.
    There may or may not be any messages displayed; you'll know it's done when you see the prompt again.

  • Where are the forward/back, refresh,etc- f11 didn't help nor did dragging from the left of the 'y' as suggested---help?om

    Do not have the page forward/back arrows, refresh icon, etc in my toolbar. Saw where this has happened on your page & recommendation was to 'drag' from the left of vertical bar next to the 'Y' in Yahoo- didn't work. Also said to hit the F11 key for Firefox users- didn't work.

    Do you have the orange Firefox button, which is an abbreviated menu?
    If you have no menus ''and'' no toolbars, check that you're not in full screen mode. Use the F11 key to switch between full screen and normal modes.
    To reset your menus and toolbars, you can use Firefox's Safe Mode.
    First, I recommend backing up your Firefox settings in case something goes wrong. See [https://support.mozilla.com/en-US/kb/Backing+up+your+information Backing up your information]. (You can copy your entire Firefox profile folder somewhere outside of the Mozilla folder.)
    Next, close Firefox, hold the Shift key on the keyboard, and restart. You should get a dialog with various reset options. The only one to check is toolbars. More info: [https://support.mozilla.com/kb/Safe+Mode Safe Mode].
    Does that help?

  • Where are the forward/back buttons?

    There is no (three dot) menu button in the top right beside the tab; the hardware button menu (bottom left button) shows only a forward button.
    Running Firefox 21.0 on Android 4.1.2 Samsung SGHI547c.

    The Galaxy S3 has a hardware menu button. That will have the menu items including forward. It does not have a 3 dot button.

  • Deleting Duplicate bounced back emails

    Hello,
    I work at a company as our IT guy.  I've recently been put to the task to clean up the bounced back email so we can figure out why they are being bounced back.  We send out an email blast or "newsletter" every week and I've never been
    told to check the marketing email to see if there were any bounce backs until we sent about 10 newsletters.  Now what this has done has created about 5000 bounced back emails that I've sorted with a few rules I made but at least half of those if note
    more are duplicates because outlook is trying to send the message again or because we've sent the same defective email multiple newsletter. 
    My question to you guys.  Is there a way I can easily delete just the duplicate emails that I've received?  Because the way im doing it now is by clicking on one of the bounce backs and seeing "[email protected]" and then I search
    for "[email protected]" and see that there are 4 duplicates so I delete all the extras to leave me with one I can check and verify what is wrong with that address.

    Use the
    setup-outlook-duplicates-remover.exe to complete the task.
    http://gallery.technet.microsoft.com/Remove-Duplicates-Emails-39b49613
    Or we may use the other 3rd party tools to do that.
    http://www.slipstick.com/addins/duplicates-addins/duplicate-remover-tools-for-outlook/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Tony Chen
    TechNet Community Support

  • Where are the email options like SendNow had?

    My inbox is getting pick up notices from recipients who've accessed the links that I've sent them. I don't want or need these pick up notices filling by inbox. Where are the email options like SendNow had?
    More importantly, why did Adobe get rid of a wonderful product... I'd pay more to get the old service back!!
    Thx, JG

    Hi jgriffenJTC,
    You can disable notifications on a per-file basis. Please see View a file's tracking information in the Adobe Send Getting Started document.

  • HT2623 people are reporting that my mobile me email address is bouncing back emails.  please help!

    I am not recieving some important emails from multiple sources, some are being bounced back and others appear to be going through but i'm noit recieving them.  What can I do to fix this issue?
    thanks

    Did you migrate your MobileMe account to iCloud in August last year? Or did you open an iCloud account when it was first available? 
    Do you have a functioning @icloud.com version of the @me.com address? - please send yourself a message to that and see what happens.
    Can you log in with this address at http://icloud.com ?

  • Where are the email digests?

    Where are the email digests?
    Or aren't there any any more?
    Or am I just not understanding how to get a digest from a particular forum?

    Hey Dave,
    Thanks for getting back to me. I follow where you are coming from now.
    First, I don't think I am contradicting myself in my liking of the forum layout yet being upset about the ommission of what I consider an absolutely crucial feature - the daily digest of a group -  IMO.
    As such while the forum is still "useable" (and I am glad to see the final integration of the Macromedia and Adobe forums). Previousely I was never able to get a Dreamweaver or Flash digest sent to me daily due to the incompatabilities between the forum software. They may have been on the same page, but they were two different systems! So when I saw that the new forum was up I went in and happily subscribed to forums such as the Dreamweaver and Flash groups expecting a daily digest.
    Because I did not read and because I assumed Adobe would not be arrogant enought to drop the digest feature (without consulting users), within an hour or two my mailbox was flooded with e-mails! That may be the way some people like to receive their information, but it is not for me! BTW, the only thread I am subscribed to is this one!
    So now not only am I unable to get a new Daily Digest of Dreamweaver, Flash etc, but my old Digests of Premiere, After Effects, Encore etc are history! And even though I think the forums are relatively well designed and laid out compared to the many other forums out there. I do not have the time or inclination to go trolling through group after group and topic after topic!
    So like you, I am not happy with Adobe and say to them  - your forums are too extensive for users to have to endlessly search through group after group and topic after topic to keep up-to-date with the information they need. You have made it harder to use than ever. And like Dave says, you are alientating not just expert users, but all users - who are the lifeblood of these forums and many have spent countless hours providing a valuable contribution and support to others (like myself)!! These forums have been invaluable especially when you have released buggy products with issues as users can provide feedback, solutions and workarounds much quicker than your Adobe Updater.
    Oh, BTW Dave, I am curious, what are your other showstopper issues with the forum besides the lack of a digest? I have just plain not used the forums whatsoever (besides this topic) since the changeover and I am wondering what an expert user like you has found out.
    Cheers,
    Martin

  • Where are the "receipts" of the photos that I email from iPhoto?  I have no record that I can find of these.

    Where are the receipts of the photos that I email from Iphoto.  I can't find a record of those that I have sent.

    I am not using it in a "professional manner".  Even I need to know who I sent that particular photo to and when and by the way, who are you to define what Apple meant by the design of its software?  I think you overstep yourself here.  I also think Apple has made every effort to lead people to believe that it serves a dual purpose as a personal as well as business tool.  I don't need sarcasm from you or anyone when I am trying to learn that which is hidden (or absent) in the software.  Being professional does not necessarily mean for a "business", but rather the level of sophistication and usefulness in the product. 

  • Hi, i had backed up my data and then when i restored my phone with the restore backup option, all the photos, music where there but no apps. Al my apps are disappeared. Can you please tell me where are my apps backed up?

    Hi, i had backed up my data and then when i restored my phone with the restore backup option, all the photos, music where there but no apps. Al my apps are disappeared. Can you please tell me where are my apps backed up?

    Apps (like other synced media like music) are not included in the backup that iTunes makes. Thus, restoring from backup if the apps are not in the iTunes library there are no apps to restore to the iPod.
    Redownload the apps into your iTunes library.
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    And then restore from backup.
    Make sure that in iTunes>Preferences>Devices the box that say "Prevent iPods..." is checked otherwise when you connect the iPod to the computer the previous backup (with your app data) might be overwritten.

  • Bounce Back Email Handling

    Gurus, is there some functionality in OCS, helping to handle bounce back email. If there isnt, is there any workaround for the issue. Thanks, Howard.

    Hi,
    OCS default install bounces back alot of mail as it rejects anything from a domain it cant do a reverse dns lookup on. This issue can be resolved with two patches
    these are 2863557 and 2864009(these patches are for core dumps but they do fix this issue). These need to be applied after all the other patches (patchset 1, webmail patches, and bundled patchsets). Let me know if you want further details of these.
    Hope this helps
    Thanks and Best Regards
    Lynne

  • Where are the older BIOS versions gone?

    Hi
    A few weeks back, I've upgraded the BIOS on my Pavilion G6 1001sq to the latest version (F66). I noticed that the laptop is running considearbly hotter since then and I want to revert to an older BIOS version. When I go to the updates page on the HP website and click on "older versions available" I can only see the F66 version on the page I'm directed to ( http://h10025.www1.hp.com/ewfrf/wc/previousVersions?softwareitem=ob-115746-1&cc=us&dlc=en&lc=en&os=4... ), although a long list with many versions was available till recently. Where are the older versions gone?

    Unfortunately, I do not know where they have gone. HP is working on issues with the suport and driver servers at the moment.
    Since your notebook does have the UEFI Diagnostics installed, you should be able to rollback to the previous version that was installed. Use the firmware management option to do that.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Where are the pictures found in the Adobe Photoshop 10 organizer?

    Nov. 29, I had my computer repaired from a trojan, & I figured out that everything i've done since Sept. 13th was gone because when the computer guy was fixing it, he tried to put in the new MicroSD card reader, but he had to put an old one back in (from Sept.) as the new one had wrong connections.
    Then, when he started the PC he only had the C drive (& my documents and pictures are on the A drive). He turned it off and realized he accidentally disconnected one of the mirror hard drives for Drive A. He had to turn it off and open it again and reconnect the cable that was disconnected.
    During that moment perhaps a line in the drive had become corrupted. So, I restored through Carbonite, hoping I'd get back almost everything (or at least whatever was done being backed up). However, I lost quite a few pictures.
    Tuesday, however, I noticed that the pictures I lost were imported into the organizer for Adobe Photoshop 10, which is on the C drive, so I'm hoping the pictures are still there, even if they are thumbnails (I assume they would be)! But where are the pictures found in the Adobe Photoshop 10 organizer? I assume in a folder somewhere? Am I able to copy them? (A low quality image, is better than no image!)

    The thumbnail cache is separate and lives in the system files.
    You could try a new catalog - it doesn’t involve any duplication.
    Click: File >> Catalog
    Click the New button
    Give your catalog a name e.g. My Catalog2 (or whatever you prefer)
    Check the box Import Free Music - that will bring in the Adobe MP3 tracks used in slideshows
    Then click OK
    When the new blank catalog opens click: File >> Get Photos and Videos >> From Files & Folders
    Navigate to your root folder (normally Pictures or My Pictures or wherever you put your photos) then press Ctrl+A to select all sub folders or make sure the checkbox is marked.
    Click Open or Get Media
    Wait for Elements to complete the import, accept all keyword suggestions (select all) and then wait for thumbnails to finish generating.
      N.B. You may not get all the metadata (keywords etc) but in view of the problems you have had it may be your best hope.

  • (261936172) Q general Where are the Web Service source files?

    Q <general> Where are the source files for a Web Service created
    with WebLogic Workshop stored? How do I deploy the Web Service
    on a different WebLogic Server? Is there a way to bundle the
    Web Service project files manually to distribute them?
    Is there a way to configure the directory where Workshop stores
    the files?
    ANSWER: (by Adam Fitzgerald, [email protected]) The .jws files are stored
    in the project folder. This can be located on a local system, although by default
    they are in c:\bea\wlserver700b\sample\workshop\applications. The Web Service
    structure is understood by WLS 7.0 so by archiving the appropriate folder you
    can transfer the Web Service in its entirety from one deployment to another.

    Hi Dean,
    In SharePoint 2013 Designer, the help files are online. They provide tons of general information regarding SharePoint Designer 2013.  You can also find help files at:
    http://technet.microsoft.com/en-us/library/jj219638%28office.15%29.aspx .
    And find a great set of information on SPD 2013 and the new Workflow architecture here:
    http://msdn.microsoft.com/library/office/jj163986(v=office.15)
    More information, please refer to the link:
    http://blogs.msdn.com/b/sharepointdesigner/archive/2012/08/07/welcome-to-sharepoint-designer-2013-customer-preview.aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

Maybe you are looking for