Want to get the failure delivery message

import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
public class ReplyExample {
     public static void main (String args[]) throws Exception {
String host = "127.0.0.1";
String from = "[email protected]";
String to = "[email protected]";
String reply = "[email protected]";
// Get system properties
Properties props = System.getProperties();
// Setup mail server
props.put("mail.smtp.host", host);
// Get session
Session session = Session.getInstance(props, null);
// Define message
MimeMessage message = new MimeMessage(session);
     message.setFrom(new InternetAddress(from));
     message.addRecipient(Message.RecipientType.TO,new InternetAddress(to));
     message.setReplyTo(new InternetAddress[]{new InternetAddress(reply)});
     message.setSubject("Hello JavaMail");
message.setText("Welcome to JavaMail");
// Send message
Transport.send(message);
Why i am not getting the failure delivery message?

If the above mentioned code is wrong then kindly let me know to the exact code.
Waiting for your quick responce.

Similar Messages

  • HT204053 How do i make icloud work if my husband and I share the same itunes account but we dont want to get each others contacts, messages, apps etc?

    How do i make icloud work if my husband and I share the same itunes account but we dont want to get each others contacts, messages, apps etc?

    Each of you should set up your separate iCloud account on your own computer using your Apple ID. This gives you two independent iCloud accounts.
    Note that an iPad is not a multi-user device. It can only be synced with one account.

  • After reformatting my 1 Tb WD ext drive and tinkering with the "exclude these items" list, I now get the following error message from Time Machine:Are you sure you want to back up to the same device your original data is on? the WD disk has mounted??

    After reformatting my 1 Tb WD ext drive and tinkering with the "exclude these items" list, I now get the following error message from Time Machine: "Are you sure you want to back up to the same device your original data is on?"  I've reformatted in Disk Utilities...not sure what I did wrong.  Any help would be appreciated.

    Not sure what you mean by "booted" from it.
    If the Mac OS is installed on the external drive, then it's possible to start up from it, just as you do from your internal drive. Please open the Startup Disk preference pane in System Preferences, and verify that your internal drive is selected as the startup disk.
    Assuming that's the case, then it may be that your TM settings have been corrupted. Turn off TM, then move or delete the file /Library/Preferences/com.apple.TimeMachine.plist. Turn TM back on, recreate your settings, and try again.

  • I keep getting download error and it does not want to download.  I tried deleting anything that might have creative suite links and reloading but I keep getting the same error message.

    I keep getting download error and it does not want to download.  I tried deleting anything that might have creative suite links and reloading but I keep getting the same error message.

    Well... what IS the error message?
    Please read https://forums.adobe.com/thread/1499014
    -try some steps such as changing browsers and turning off your firewall
    -also flush your browser cache so you are starting with a fresh browser
    http://myleniumerrors.com/installation-and-licensing-problems/creative-cloud-error-codes-w ip/
    http://helpx.adobe.com/creative-cloud/kb/failed-install-creative-cloud-desktop.html
    or
    A chat session where an agent may remotely look inside your computer may help
    Creative Cloud chat support (all Creative Cloud customer service issues)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html

  • I am trying to update I-tunes, but I get the following error message. Service Apple Mobile Device failed to start and wants me to verify I have sufficient priveledges to start system services.  I do not know what to do.

    I am trying to update I-tunes, but I get the following error message. Service Apple Mobile Device failed to start and wants me to verify I have sufficient priveledges to start system services.  I do not know what to do. I am the only user on my HP Pavillion laptop. Help!

    Hi Iss9243,
    Welcome to the Support Communities!
    You've already tried some great troubleshooting steps, but the article below gives you quite a few more for this issue.  Hope it helps ....
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    - Judy

  • I am having an installation failure issue with my itunes 11 software.  File is corrupted and i don't know what to do.  I've un-install and re-installed the software three times and continue to get the same error message.  It states that "This copy of ITun

    I am having an installation failure issue with my itunes 11 software.  File is corrupted and i don't know what to do.  I've un-install and re-installed the software three times and continue to get the same error message.  It states that "This copy of ITunes is corrupted or is not installed correctly.  Please reinstall Itunes"
    iMac, iOS 6

    HI,
    If your old version of iTunes is still working - then I sugest you stick with that.
    iTunes 11 is a lousy update - It will not retain your playlists, you can't find and delete duplicates... and a whole arry of oyher issues. (have a look around this forum to see how many issues IT11 gives people)
    Just a friendly advise and warning :-)

  • Everytime I want to update the latest iTunes or iPhone software I get the following error message "Cannot open the URL" please help?

    I need to update my iTunes and my iPhone 3GS to the latest version and evertimes I click on "update" I get the following error message displayed - "cannot open URL".  I have checked the permissions on my windows firewall and iTunes is not blocked.  PLease can anyone give me some other suggestions as its really frustrating and I want to download ringtones etc but can't do so without the latest software versions of iOS etc.  Please help?  Thank you

    Try temporarily disabling your firewall and antivirus software and try again...
    See here for Connection Issues
    http://support.apple.com/kb/TS1379
    From Here
    http://www.apple.com/support/itunes/troubleshooting/

  • Using the Export to PDF online service, I get "Conversion Failure" error message; why?

    Using the Export to PDF online service, I get "Conversion Failure" error message; why?
    The documen t was originally created with Word (*.doc) then printed to PDF format; now I need to convert back to Work, but I get the "Conversion Failure" error message, both on conversion back to *.Doc format and attempt to convert to *.docx format.

    Hi lfordlaw,
    How large is the PDF that you're trying to convert? How did you generate the PDF from Word (did you use Acrobat, or Word's built-in PDF generator)? What version of Word are you using?
    The answers to those questions should help us get to the bottom of things.
    In the meantime, please try the following:
    Clear the browser cache and log back in to https://cloud.acrobat.com.
    Try a different web browser (see System Requirements | Adobe Acrobat Pro and Online Services for a list of supported browsers).
    Try to convert a different file (if you can convert another file without error, the one you're receiving the error on may be damaged).
    I look forward to hearing back from you.
    Best,
    Sara

  • I have Elements 12 installed.  When I am in the catalog, click on a photo, then want to open the Editor, I get an error message.  If I click on Editor from the Welcome screen, I get the same error message.  Why doesn't Editor work?  Thanks.

    I have Elements 12 installed.  When I am in the catalog, click on a photo, then want to open the Editor, I get an error message.  If I click on Editor from the Welcome screen, I get the same error message.  Why doesn't Editor work?  Thanks.

    You'd better ask in the Elements forum.
    Photoshop Elements

  • Following recent Firefox update, I keep getting the foillowing Java message -Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWindowsRegKey.op

    Following recent Firefox update, I keep getting the following Java message each time I attempt to download a file, - Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIWindowsRegKey.op.
    Following a click on the off cross, it then allows the download to continue.
    When is AFG Safe Search to be fixed?

    please report this error to AVG, the 3rd party developer of the addon, in order for them to fix it...

  • I am using a 2003 eMac and am running on Mac OSX  vs 10.4.11. iTunes is not recognizing music I have purchased and when I try to connect when it request me to I get the following error message:  Cannot complete i Tunes Store request. A required iTunes com

    I am using a 2003 eMac and am running on Mac OSX  vs 10.4.11. I amrunning iTunes 8.2.1 (6) and not able to upgrade iTunes on this computer. iTunes is not recognizing music I have purchased and when I try to connect when it request me to I get the following error message:
    Cannot complete  iTunes Store request. A required iTunes component is not installed (-42404)
    Please help.

    Is this music purchased back in DRM days? I don't actually have any iTunes music so I can't test with my iTunes 7.5, but I know that without iTunes 10 you cannot even connect to the store anymore.  I wouldn't think that would require an active connection to the store all the time, otherwise how could you play music on a computer in the middle of nowhere?  Did you do something to trigger iTunes suddenly wanting to connect and check on machine authorization?

  • Can I get the same text messages on both my iPhone and my iMac

    can I get the same text messages on both my iPhone and my iMac
    It seems that my Mac is getting them and they dont show up on my iphone.

    Hi julian KAYE!
    You will want to make sure that both your computer and phone have all options checked in the “Start new conversations from” section in your Messages settings:
    iOS: Using Messages
    http://support.apple.com/kb/ht3529
    You can change the address that new iMessage conversations are started with in Settings > Messages > Send & Receive > Start new conversations from. Note that this setting applies only to new conversations. If you would like to change the address from which messages are sent, first change this setting, and then delete the existing conversation and start a new one.
    iOS and OS X: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • How to get the number of messages consumed by a MDB ??

    Hi all,
    How to get the number of messages consumed by a MDB displayed in OEM in a Java Application ???
    DMS ??? what use DMS ???
    tanks

    ok.
    Well using DMS is one way to get at these sorts of stats in a programmatic manner.
    There's a Java API you can use, or you could call out to the Spy servlet to query the DMS stats in either text or XML form.
    I don't have an MDB published so I can't show you specifiically, but here's the sort of query you can use to extract the data.
    http://localhost:8888/dms0/Spy?format=raw&table=oc4j_ejb_stateless_bean&recurse=children
    Which produces a table of the TEXT form:
    <DMSDUMP version='9.0.4' timestamp='1163456821185 (Tue Nov 14 08:57:01 CST 2006)' id='8888' name='OC4J'>
    <statistics>
    /oc4j [type=n/a]
    /oc4j/default [type=oc4j_ear]
    /oc4j/default/EJBs [type=oc4j_ejb]
    /oc4j/default/EJBs/jmsrouter_ejb [type=oc4j_ejb_pkg]
    /oc4j/default/EJBs/jmsrouter_ejb/AdminMgrBean [type=oc4j_ejb_stateless_bean]
    pooled.count:     11     ops
    pooled.maxValue:     1     count
    pooled.minValue:     0     count
    pooled.value:     0     count
    ready.count:     11     ops
    ready.maxValue:     1     count
    ready.minValue:     0     count
    ready.value:     0     count
    session-type.value:     Stateless     
    transaction-type.value:     Bean     
    /oc4j/default/EJBs/jmsrouter_ejb/EnqueuerBean [type=oc4j_ejb_stateless_bean]
    pooled.count:     11     ops
    pooled.maxValue:     0     count
    pooled.minValue:     0     count
    pooled.value:     0     count
    ready.count:     11     ops
    ready.maxValue:     0     count
    ready.minValue:     0     count
    ready.value:     0     count
    session-type.value:     Stateless     
    transaction-type.value:     Bean     
    /oc4j/default/EJBs/jmsrouter_ejb/TimerHandlerBean [type=oc4j_ejb_stateless_bean]
    pooled.count:     11     ops
    pooled.maxValue:     0     count
    pooled.minValue:     0     count
    pooled.value:     0     count
    ready.count:     11     ops
    ready.maxValue:     0     count
    ready.minValue:     0     count
    ready.value:     0     count
    session-type.value:     Stateless     
    transaction-type.value:     Bean     
    </statistics>
    </DMSDUMP>
    Or produces an XML document of the form:
    http://localhost:8888/dms0/Spy?format=xml&table=oc4j_ejb_stateless_bean&recurse=children
    You can use the Spy console to find the table that contains the details for MDB and then take it from there.
    This is not what you specifically want to do, but it does provide a good overview of how DMS is used.
    http://www.oracle.com/technology/pub/notes/technote_dms.html
    -steve-

  • I am getting the following error message when trying to open a link to a folder

    "This file is set to be launched by this PDF file. This is currently disallowed by your system administrator."
    Currently I am using Reader 9, I was using Reader 7 earlier today and the link opened the folder with no problem. Nothing has been changed on the PDF file containing the link, nothing has been changed in the link, and if I go to another computer in the office that is still running Reader 7 the folder still opens. I also tried another computer in the office running Reader 9, the folder doesn't open, and I get the same error message.
    Any ideas on how to fix this issue would be great. Thanks

    Hi,
    The issue that you are referring to maybe because of a fix provided by Adobe to prevent any external attacks. The following links may be of help to you:
    http://www.adobe.com/support/security/bulletins/apsb10-15.html
    http://news.softpedia.com/news/Adobe-Finally-Fixes-Launch-Bug-145757.shtml
    To allow certain files of yours to be able to open external files and operate witout restriction, you can try and add the files to the Privileged locations section and the restrictions on the files will be lifted:
    1. Open Adobe Reader 9.4.0 and goto Edit | Preferences
    2. From the Left side pane, goto Security (Enhanced)
    3. Click on Add File button and add the file for which you want the restrictions to be lifted. Click on OK to close the dialogs and relaunch Adobe Reader. This will enable you to open external attachments as well as allow JavaScripts to be executed from the PDF file mentioned.

  • I keep getting the follow error messages when I try to sign into iTunes store or redeem a song code: We could not complete your iTunes store request. The network connection could not be established. There was an error in the iTunes store, please try again

    I keep getting the following error messages on my Mac when I try to redeem a song code: "We could not complete your iTunes store request. The network connection could not be established. There was an error in the iTunes store, please try again later."  and then, "We could not complete your iTunes Store request. An unknown error occurred (-50)."

    Hello, constance132. 
    Thank you for visiting Apple Support Communities. 
    Here are some troubleshooting steps that I could recommend when receiving error -50. 
    "Error -50," "-5000," "8003," "8008," or "-42023"
    These alerts occur due to timeouts or conflicts trying to write a file during download.
    If you encounter this issue while accessing iTunes Store:
    See iTunes 9: "One Moment Please" or "Error (-50)" message when accessing iTunes Store
    If you encounter this issue while while downloading something from the iTunes Store:
    Delete your iTunes Downloads folder, located in:
    Mac OS X:
  ~/Music/iTunes/iTunes Media/Downloads   Note: "iTunes Media" may appear as "iTunes Music. Also, the tilde (~) refers to your Home directory.
    Windows Vista:
  \Users\username\Music\iTunes\iTunes Media\Downloads\
    Windows 7:
  \Users\username\My Music\iTunes\iTunes Media\Downloads\
    Windows XP:
  \Documents and Settings\username\My Documents\My Music\iTunes\iTunes Media\Downloads\
    After locating your iTunes Downloads folder:
    Quit iTunes.
    Delete the Downloads folder on your computer.
    Open iTunes.
    Choose Store > Check for Available Downloads.
    Enter your account name and password.
    If you encounter this issue while while downloading Digital Copies using Windows:
    Use MSCONFIG (directions for Windows XP and Windows Vista/Windows 7) to disable conflicting software.
    If using MSCONFIG steps resolves the issue, you may want to use the System Configuration Utility to turn on the third-party System Services and Startup Items one at a time (restarting your computer after turning on the item or items) to identify which System Service or Startup Item is causing the conflict.
    You can turn all of them back on by selecting the Normal Startup option under the General tab of the System Configuration Utility window, but please note that this may cause the issue to reoccur.
    If you are able to isolate the issue to a particular third-party software, you may wish to contact them to let them know of the conflict.
    iTunes: Advanced iTunes Store troubleshooting
    http://support.apple.com/kb/TS3297
    Cheers,
    Jason H. 

Maybe you are looking for

  • Problem with Sharepoint and IIS worker process

    My problem is, that the first load and login of a sharepoint sites takes each about 20 s - afterwards the site works fine. I have identified the IIS worker process as possible reason. This is what's happening:  I can see the IIS worker process w3wp.e

  • LINE ITEM ADDING UP IN j1IF01 ( SUB CONT CHALLAN)

    Hi the line item is doublinb up as second line item automatically and the value is also added pls help to rectify the error chris

  • Dynamically populating a dropdown list in a pdf form from a datasource

    Is there a way to populate a dropdown list in a pdf form from a datasource, specifically from an Access database table or query, using LiveCycle Designer. I am easily able to do this using cfselect in Coldfusion, however, cannot seem to figure it out

  • Time Capsule and Verizon MIFI

    I have Verizon MIFI into our home for internet connection.  How can I use this with the Apple Time Capsule? Any inputs would be greatly appreciated.

  • Regarding Customizing of Time Statement Form

    Hi All, I have a standard form for Time Statement which is used in ESS (portal) and that is to be customized. The Standard Form is a SmartForm and we need to make a "Z" form now. Std Form : PYXXFO_SAP_TIM_99_0001 The issue is that when we make the co