No one has answer of my question?? please help!!

hi gurus,
i am trying to test sun provided demo programs for testing JAVA Mail API
i am getting these errors please help me out ......
thanks in advance
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG: SMTPTransport trying to connect to host "my.test-inc.com", port 25
DEBUG SMTP RCVD: 220 X1 NT-ESMTP Server my.test-inc.com (IMail 6.05 30687-1)
DEBUG: SMTPTransport connected to host "my.test-inc.com", port: 25
DEBUG SMTP SENT: EHLO pankaj01
DEBUG SMTP RCVD: 250-my.test-inc.com says hello
DEBUG SMTP: use8bit false
DEBUG SMTP SENT: MAIL FROM:<[email protected]>
DEBUG SMTP RCVD: 250-SIZE 0
DEBUG SMTP SENT: RCPT TO:<[email protected]>
DEBUG SMTP RCVD: 250-8BITMIME
Verified Addresses
[email protected]
DEBUG SMTP SENT: DATA
DEBUG SMTP RCVD: 250-DSN
DEBUG SMTP SENT: QUIT
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: 250-DSN
java.lang.Throwable(java.lang.String)
java.lang.Exception(java.lang.String)
javax.mail.MessagingException(java.lang.String, java.lang.Exception)
javax.mail.SendFailedException(java.lang.String, java.lang.Exception, javax.mail.Address [], javax.mail.Address [], javax.mail.Address [])
void javax.mail.Transport.send0(javax.mail.Message, javax.mail.Address [])
void javax.mail.Transport.send(javax.mail.Message)
void adt.com.ocs.ldap.ui.SendFile.main(java.lang.String [])

this is the output I'm getting through your program
DEBUG: getProvider() returning javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsy stems, Inc]
POP3: connecting to host "216.147.121.178", port 110
S: +OK crescotec.com POP3 Server (Version 1.020h) ready.
C: USER ritesh
S: +OK please send PASS command
C: PASS ritesh
S: +OK 0 messages ready for ritesh in /home/cresco12/crescotec-mail/ritesh
from: [email protected]
to: [email protected]
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG: SMTPTransport trying to connect to host "216.147.121.178", port 25
DEBUG SMTP RCVD: 220 yourserver.net ESMTP Sendmail 8.10.2/8.10.2; Wed, 25 Jul 2001 16:22:03 -0400
DEBUG: SMTPTransport connected to host "216.147.121.178", port: 25
DEBUG SMTP SENT: EHLO riteshnew
DEBUG SMTP RCVD: 250-yourserver.net Hello 66-2-186-193.customer.algx.net [66.2.186.193], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
DEBUG SMTP Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP Found extension "8BITMIME", arg ""
DEBUG SMTP Found extension "SIZE", arg ""
DEBUG SMTP Found extension "DSN", arg ""
DEBUG SMTP Found extension "ONEX", arg ""
DEBUG SMTP Found extension "ETRN", arg ""
DEBUG SMTP Found extension "XUSR", arg ""
DEBUG SMTP Found extension "HELP", arg ""
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]
DEBUG SMTP: useEhlo true, useAuth false
DEBUG: SMTPTransport trying to connect to host "216.147.121.178", port 25
DEBUG SMTP RCVD: 220 yourserver.net ESMTP Sendmail 8.10.2/8.10.2; Wed, 25 Jul 2001 16:22:03 -0400
DEBUG: SMTPTransport connected to host "216.147.121.178", port: 25
DEBUG SMTP SENT: EHLO riteshnew
DEBUG SMTP RCVD: 250-yourserver.net Hello 66-2-186-193.customer.algx.net [66.2.186.193], pleased to meet you
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-SIZE
250-DSN
250-ONEX
250-ETRN
250-XUSR
250 HELP
DEBUG SMTP Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP Found extension "8BITMIME", arg ""
DEBUG SMTP Found extension "SIZE", arg ""
DEBUG SMTP Found extension "DSN", arg ""
DEBUG SMTP Found extension "ONEX", arg ""
DEBUG SMTP Found extension "ETRN", arg ""
DEBUG SMTP Found extension "XUSR", arg ""
DEBUG SMTP Found extension "HELP", arg ""
DEBUG SMTP: use8bit false
DEBUG SMTP SENT: MAIL FROM:<[email protected]>
DEBUG SMTP RCVD: 250 2.1.0 <[email protected]>... Sender ok
DEBUG SMTP SENT: RCPT TO:<[email protected]>
DEBUG SMTP RCVD: 250 2.1.5 <[email protected]>... Recipient ok
Verified Addresses
[email protected]
DEBUG SMTP SENT: DATA
DEBUG SMTP RCVD: 354 Enter mail, end with "." on a line by itself
DEBUG SMTP SENT:
DEBUG SMTP RCVD: 250 2.0.0 f6PKM4A18446 Message accepted for delivery
DEBUG SMTP SENT: QUIT
here is the code that I modified the I had just deleted my user name and password due to some confidentially problem at the organization. I think you can understand it here is the code the location where I had written
xxxxxxx is the user name and ****** is a password.
/**The Code*******************************/
// Copyright (c) 2000 vitalspring
package package1;
* A Class class.
* <P>
* @author developer1
import java.util.Properties;
import javax.mail.*;
import javax.mail.internet.*;
public class Mailer
public static void main (String args[]) throws Exception
String smtpHost = "216.147.121.178";
//String smtpHost = "smtp.mail.yahoo.com";
String popHost = "216.147.121.178";
// I had replaced my.test-inc.com to 216.147.121.178 the ip address that you can
// get by typing the command ping and the server-name
//String popHost = "pop.mail.yahoo.com";
// String from = "[email protected]";
// change this string to my username i.e the account that I have on the above hosts
String from = "[email protected]" ;
String to = "[email protected]";
// String username = "pankaj";
String username = "xxxxx" ;
// String password = "pjha";
String password = "*****" ;
// Get system properties
Properties props = System.getProperties();
// Setup mail server
props.put("mail.smtp.host", smtpHost);
// props.put("mail.smtp.auth", "true");
// Get session
// I had just commented out this for testing
// Session session = Session.getInstance(props, new MyAthenticator());
Session session =Session.getInstance (props,null);
session.setDebug(true);
// Pop Authenticate yourself
Store store = session.getStore("pop3");
store.connect(popHost, username, password);
// Define message
MimeMessage message = new MimeMessage(session);
InternetAddress addrTO=new InternetAddress(to);
InternetAddress addrFROM=new InternetAddress(from);
message.setFrom(addrFROM);
System.out.println("from: "+addrFROM.getAddress());
System.out.println("to: "+addrTO.getAddress());
message.addRecipient(Message.RecipientType.TO,addrTO);
message.setSubject("Hello JavaMail");
message.setText("Welcome to Yahoo's JavaMail");
Transport transport = session.getTransport("smtp");
transport.connect(smtpHost, username, password);
// Send message
transport.send(message);
class MyAthenticator extends Authenticator
public PasswordAuthentication getPasswordAuthentication()
return new PasswordAuthentication("pankaj","pjha");
You must have received a mail from [email protected] at your account that you have specified here. I had also commented the authenticator method...
Sorry your account at this server is not existing since its returned back to me . Anyway ...
have a nice time

Similar Messages

  • HT201303 I forgotten my answer of security questions, please help me. Thank you !

    I forgotten my answer of security questions, please help me. Thank you !

    You need to ask Apple to reset your security questions; as described in this article, it can be done in Vietnam by phoning 1-201-0288 and then 800-708-5413.
    (107433)

  • HT5312 i did not provide secure email, now i also forgot the answers of secret question, please help me to reset the security question.

    Please help me to solve this issue T_T

    If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551

  • I cannot purchase anything from the App store using my Itunes voucher due to forgetting answers to security questions.. help?!

    I have been unable to purchase apps from the app store as i have forgotten the answers to security questions, please help!

    http://support.apple.com/kb/HT5665

  • Since updating to iOS 6, my 4th gen iPod touch, and my 3rd gen iPad has sound in and out. Sometimes it's on, and then all of a sudden, no sound. I've tried everything from restarting to fully resetting each one starting fresh, but nothing. Please help.

    Since updating to iOS 6, my 4th gen iPod touch, and my 3rd gen iPad has sound in and out. Sometimes it's on, and then all of a sudden, no sound. I've tried everything from restarting to fully resetting each one starting fresh, but nothing. Please help.

    I have exactly the same problem. I have tried almost everything and I am nowhere near an Apple shop as I am working in Africa.
    Did you manage to find a solution? Help please if possible. Regards Az

  • I was hacked i kept getting emails that some purshcaes were being made when no one was downloading them and i guess they hacked my apple iD because they changed the security question and now i cant change anything without the security question please help

    I was hacked i kept getting emails that some purshcaes were being made when no one was downloading them and i guess they hacked my apple iD because they changed the security question and now i cant change anything without the security question please help i want to reset the security question but i cant.

    You should contact Apple by phone as soon as possible. You'll need to change your Apple ID and all passwords.
    See Contact Apple at the bottom right of this page.
    Hope this helps.

  • I forgot to answer the security question, please tell me what to do?

    I forgot to answer the security question, please tell me what to do?

    This is asked and answered countless times every day.
    The forum search bar and More Like This section are on the right side of this page.

  • Hi I live in Iran and I forgot the answer to the security question please help me thanks

    Hi I live in Iran and I forgot the answer to the security question please help me thanks

    How to reset your Apple ID security questions.
    Go to appleid.apple.com, click on the blue button that says 'Manage Your Apple ID'.
    Log in with your Apple ID and password. (If you have forgotten your Apple ID password, go to iforgot.apple.com first to reset your password with a password recovery email)
    Go to the Password & Security section on the left side, and click on the link underneath the security questions that says 'Forgot your answers? Send reset security info email to [email]'.
    This will generate an automated e-mail that will allow you to reset your security questions.
    If that doesn't work, or  there is no rescue email link available, then click on 'Temporary Support PIN' that is in the bottom left side, and generate a 4-digit PIN for the Apple Account Security Advisor you will be contacting later.
    Next, go to https://getsupport.apple.com
    (If you see a message that says 'There are no products registered to this Apple ID, simply click on 'See all products and services')
    Choose 'More Products & Services', then 'Apple ID'.
    A new page will open.
    Choose 'Other Apple ID Topics', then 'Forgotten Apple ID Security Questions'.
    Click the blue 'Continue' button.
    Select the contact option that suits your needs best.

  • I want to change my apple id password but I forgot the security questions please help me some using my icloud I'd

    I want to change my apple id password but I forgot the security questions please help me some using my icloud I'd and if confirmation is must so please phone number is mine please send a code please help me my apple

    Welcome to the Apple community.
    If you are unable to remember your password, security questions, don’t have access to your rescue address or are unable to reset your password for whatever reason, your only option is to contact AppleCare, upon speaking to an operator you should explain that your problem is related to your Apple ID, this way you will not be charged for assistance, even if you don’t have an AppleCare plan.
    The operator will take you through some steps you may have already tried, however they need to be sure they have exhausted all usual approaches before trying to reset your account, so you should try to be helpful and show patience with the procedure.
    The operator will need to verify they are speaking to the account holder and may ask you some questions that only the account holder could know, and you will need to answer them if the process is to proceed.
    Once the operator has verified your identity they will send a message through to your device which contains an alpha numeric code, which you will need to read back to them.
    Once this has been completed they will send an email to your iCloud email address after a period of 24 hours, so you should check that mail is enabled in your devices iCloud settings.
    Upon receipt of the email, use the reset link provided to reset your password, after which you should be able to make the adjustments to iCloud that you wish to do.

  • I want to change my security question in my apple accnt. but the problem is, there is no Link shown that i could reset or change my security questions. please help!!

    i want to change my security question in my apple account. but the problem is, there is no Link shown that i could reset or change my security questions. please help!!

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (117399)

  • I logged 3 times wrong security question. please help me

    I logged 3 times wrong security question. please help me

    Hey annamyle91,
    Thanks for the question. If you are having issues with the security questions associated with your Apple ID, follow these steps:
    If you forgot the answers to your Apple ID security questions
    http://support.apple.com/kb/HT6170
    Reset your security questions
    1. Go to My Apple ID (appleid.apple.com).
    2. Select “Manage your Apple ID” and sign in.
    3. Select “Password and Security” on the left side of the page.
    4. If you have only one security question, you can change the question and answer now.
    5. If you have more than one security question:
              - Select “Send reset security info email to [your rescue email address].” If you don't see this link or don't have access to your rescue address, contact Apple Support as described in the next section.
              - Your rescue address will receive a reset email from Apple. Follow its instructions to reset your security questions and set up new questions and answers.Didn't receive the email?
    After resetting your security questions, consider turning on two-step verification. With two-step verification, you don't need security questions to secure your account or verify your identity.
    If you can't reset your security questions
    Contact Apple Support in either of these circumstances:
              - You don't see the link to send a reset email, which means you don't have arescue address.
              - You see the link to send a reset email, but you don't have access to email at the rescue address.
    A temporary support PIN isn't usually required, but Apple may ask you to generate a PIN if your identity needs to be verified.
    Thanks,
    Matt M.

  • Apple ID I forgot my security question please help me

    Apple ID I forgot my security question please help me

    You might try to see if you can change your security questions. Start here, change your country if necessary and go tomanage your account > Password and Security.
    I'm able to do this, others say they need to input answers to their current security questions in order to make changes, I'm inclined to think its worth a try, you don't have anything to lose.
    If that doesn't help you might try contacting Apple through Express Lane (select your country, navigate to iCloud help and enter the serial number of one of your devices)

  • On start up i just get a grey screen with the apple logo-this has suddenly started happenin. Please help?

    on start up i just get a grey screen with the apple logo-this has suddenly started happenin. Please help?

    Take each of these steps that you haven't already tried. Stop when the problem is resolved.
    To restart an unresponsive computer, press and hold the power button for a few seconds until the power shuts off, then release, wait a few more seconds, and press it again briefly.
    Step 1
    The first step in dealing with a startup failure is to secure the data. If you want to preserve the contents of the startup drive, and you don't already have at least one current backup, you must try to back up now, before you do anything else. It may or may not be possible. If you don't care about the data that has changed since the last backup, you can skip this step.
    There are several ways to back up a Mac that is unable to start. You need an external hard drive to hold the backup data.
    a. Start up from the Recovery partition, or from a local Time Machine backup volume (option key at startup.) When the OS X Utilities screen appears, launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.” The article refers to starting up from a DVD, but the procedure in Recovery mode is the same. You don't need a DVD if you're running OS X 10.7 or later.
    b. If Step 1a fails because of disk errors, and no other Mac is available, then you may be able to salvage some of your files by copying them in the Finder. If you already have an external drive with OS X installed, start up from it. Otherwise, if you have Internet access, follow the instructions on this page to prepare the external drive and install OS X on it. You'll use the Recovery installer, rather than downloading it from the App Store.
    c. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, start the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
    d. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data.
    Step 2
    If the startup process stops at a blank gray screen with no Apple logo or spinning "daisy wheel," then the startup volume may be full. If you had previously seen warnings of low disk space, this is almost certainly the case. You might be able to start up in safe mode even though you can't start up normally. Otherwise, start up from an external drive, or else use the technique in Step 1b, 1c, or 1d to mount the internal drive and delete some files. According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation.
    Step 3
    Sometimes a startup failure can be resolved by resetting the NVRAM.
    Step 4
    If a desktop Mac hangs at a plain gray screen with a movable cursor, the keyboard may not be recognized. Press and hold the button on the side of an Apple wireless keyboard to make it discoverable. If need be, replace or recharge the batteries. If you're using a USB keyboard connected to a hub, connect it to a built-in port.
    Step 5
    If there's a built-in optical drive, a disc may be stuck in it. Follow these instructions to eject it.
    Step 6
    Press and hold the power button until the power shuts off. Disconnect all wired peripherals except those needed to start up, and remove all aftermarket expansion cards. Use a different keyboard and/or mouse, if those devices are wired. If you can start up now, one of the devices you disconnected, or a combination of them, is causing the problem. Finding out which one is a process of elimination.
    Step 7
    If you've started from an external storage device, make sure that the internal startup volume is selected in the Startup Disk pane of System Preferences.
    Start up in safe mode. Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Post for further instructions.
    Safe mode is much slower to start and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know the login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    When you start up in safe mode, it's normal to see a dark gray progress bar on a light gray background. If the progress bar gets stuck for more than a few minutes, or if the system shuts down automatically while the progress bar is displayed, the startup volume is corrupt and the drive is probably malfunctioning. In that case, go to Step 11. If you ever have another problem with the drive, replace it immediately.
    If you can start and log in in safe mode, empty the Trash, and then open the Finder Info window on the startup volume ("Macintosh HD," unless you gave it a different name.) Check that you have at least 9 GB of available space, as shown in the window. If you don't, copy as many files as necessary to another volume (not another folder on the same volume) and delete the originals. Deletion isn't complete until you empty the Trash again. Do this until the available space is more than 9 GB. Then restart as usual (i.e., not in safe mode.)
    If the startup process hangs again, the problem is likely caused by a third-party system modification that you installed. Post for further instructions.
    Step 8
    Launch Disk Utility in Recovery mode (see Step 1.) Select the startup volume, then run Repair Disk. If any problems are found, repeat until clear. If Disk Utility reports that the volume can't be repaired, the drive has malfunctioned and should be replaced. You might choose to tolerate one such malfunction in the life of the drive. In that case, erase the volume and restore from a backup. If the same thing ever happens again, replace the drive immediately.
    This is one of the rare situations in which you should also run Repair Permissions, ignoring the false warnings it may produce. Look for the line "Permissions repair complete" at the end of the output. Then restart as usual.
    Step 9
    If the startup device is an aftermarket SSD, it may need a firmware update and/or a forced "garbage collection." Instructions for doing this with a Crucial-branded SSD were posted here. Some of those instructions may apply to other brands of SSD, but you should check with the vendor's tech support.  
    Step 10
    Reinstall the OS. If the Mac was upgraded from an older version of OS X, you’ll need the Apple ID and password you used to upgrade.
    Step 11
    Do as in Step 9, but this time erase the startup volume in Disk Utility before installing. The system should automatically restart into the Setup Assistant. Follow the prompts to transfer the data from a Time Machine or other backup.
    Step 12
    This step applies only to models that have a logic-board ("PRAM") battery: all Mac Pro's and some others (not current models.) Both desktop and portable Macs used to have such a battery. The logic-board battery, if there is one, is separate from the main battery of a portable. A dead logic-board battery can cause a startup failure. Typically the failure will be preceded by loss of the settings for the startup disk and system clock. See the user manual for replacement instructions. You may have to take the machine to a service provider to have the battery replaced.
    Step 13
    If you get this far, you're probably dealing with a hardware fault. Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.

  • Ok. So my iTunes started acting up a few months ago. ALL of the songs I purchased from the iTunes store stop in the middle of the song and then go back to the begining (I keep it on repeat one song by the way). Please help!!! (Windows 7)

    Ok. So my iTunes started acting up a few months ago. ALL of the songs I purchased from the iTunes store stop in the middle of the song and then go back to the begining (I keep it on repeat one song by the way). Please help!!! (Windows 7) I would really like to hear my songs all the way through, but I can't . I tried the "Convert Protected ACC files to Purchased ACC files fix" but it DIDN'T work. I don't know what to do. It does it when I transfer the music onto my Classic too.

    What do you mean "doesn't recognize"?

  • HT2968 I can not update several of my apps that i have purchased a while back in my Apps Store on my MacPro. Because it keeps using my old @me account for iTunes and i don't remember the password or security question, Please help?

    I can not update several of my apps that i have purchased a while back in my Apps Store on my MacPro. Because it keeps using my old @me account for iTunes and i don't remember the password or security question, Please help?

    Hi AlphaCentori,
    If you are having issues accessing the Apple ID that was used to originally purchase those apps, you may find the following article helpful:
    Apple Support: Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/ht5312
    Regards,
    - Brenden

Maybe you are looking for

  • Library view in iPad

    In Android version i can choose what i want Grid View, Cover View or Both. Will it be available for iPad version? Also where's hotfix for UDID?

  • Change system status from PDLV to DLV

    Hi All Please help me with this error. Already tick the delivery compeleted in Goods Receipt Tab but then system status won't change from PDLV to DLV. Is there any other way wherein I could change it? Thank you Jesielle

  • How to attach a document with the Requisition Workflow?

    I am testing the Oracle Requisition Demo workflow.Whenever i initiate the workflow process with Reminder Requisition Document Option.The browser pop up with the Error "The requested URL cannot be retrieved". Can anyone please guide me how do i attach

  • Adjusting Interface brightness | Visual Design CS6 | Adobe TV

    Explore Illustrator's new interface, which defaults to medium dark, similar to some video products, and learn how you can adapt it to meet your personal preferences easily and quickly. http://adobe.ly/PFh3nS

  • Push Button Problem in Custom screen

    Hi All.. Hi All.. In my custom screen, i have 2 (A1, A2) input boxes with F4 option and a Push Button.. When i select the data in these input boxes, i will click Push Button (COPY) to transfer the data from these (A1, A2) to other two input Boxes (B1