SMTP and POP3 mail unavailable

Hi,
I have installed and configured eMail application on collaboration suite. SMTP (in and out) and POP3 are started.
When I try to connect from Outlook, it finds SMTP and POP3 server but cannot login to send/retrive emails.
Also when I try to send mail from WebMail, the application returns the error:
An error occurred while sending the message
Server returned: Could not connect to SMTP host: OraServer, port: 25; nested exception is: java.net.ConnectException: Connection refused: connect
Please help me to solve this issue.

For communications, use Sockets.
For what to send over them, see the following:
SMTP - RFC 821: ftp://ftp.isi.edu/in-notes/std/std10.txt
POP3 - RFC 1939: ftp://ftp.isi.edu/in-notes/std/std53.txt
...it's all in there.
HTH,
Fredrik

Similar Messages

  • Smtp and pop3 host and port name of gmail server?????

    can any body give me smtp and pop3 host and port name of gmail server?????to send a mail......

    Just do a new initial context and lookup the datasource, in case you need other info like host name and port you can use MBEans like:
              InitialContext ctx = null;
                   // fetch managed server name by accessing the
                   // RuntimeServerMBean using the
                   // MBeanServer interface
                   ctx = new InitialContext();
                   MBeanServer server = (MBeanServer) ctx
                             .lookup("java:comp/env/jmx/runtime");
                   ObjectName service = new ObjectName(
                             "com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
                   managedServerName = (String) server.getAttribute(service,
                             "ServerName");

  • RE: (forte-users) Forte SMTP and POP3 Support

    Scaffolds includes in a protocol library an smtphandler which allows us to
    send emails. It works great! You can try contacting someone at Metamor to
    see if they can give you more information on this. I can't give you any
    code as it is part of their package. Sorry!
    -----Original Message-----
    From: Rottier, Pascal [mailto:Rottier.Pascalpmintl.ch]
    Sent: Wednesday, February 23, 2000 7:22 AM
    To: 'edwardsmjwillis.com'; kamranaminyahoo.com
    Subject: RE: (forte-users) Forte SMTP and POP3
    Support
    Mark,
    Unfortunately, Forte doesn't offer any ready-to-use internet
    protocoll
    support libraries (like FTP, Telnet, SMTP, POP3, NNTP,
    UU-code
    or MIME). I think this would be a valuable enhancement of
    Forte.
    Does any one know if SUN plans to include this into Forte?
    Does
    any one know if there is any third-party set of Tool-classes
    that
    supports this?
    Pascal
    > -----Original Message-----
    > From: edwardsmjwillis.com [SMTP:edwardsmjwillis.com]
    > Sent: Wednesday, February 23, 2000 3:36 PM
    > To: kamranaminyahoo.com
    > Subject: (forte-users) Forte SMTP and POP3 Support
    >
    >
    >
    > Hi,
    >
    > Our Forte development team are currently investigating how
    we can add
    > internet
    > mail capabilities to a Forte application. Our application
    needs to
    > send/receive
    > mails from a mail server in an NT environment. Does forte
    provide SMTP and
    > POP3
    > protocol support (libraries) so that we can use external
    connection class
    > to
    > connect to the server and send/ receive mails or do we
    have to use third
    > party
    > controls ?.
    >
    > Any help regarding code examples or third party solutions
    would be
    > appreciated.
    >
    > Thanks in advance
    >
    > Mark J Edwards
    > Senior Technical Specialist
    > Willis
    >
    > Email: edwardsmjwillis.com
    >
    >
    >
    >
    >
    > The information in this email and in any attachments is
    confidential and
    > may be
    > privileged. If you are not the intended recipient, please
    destroy this
    > message,
    > delete any copies held on your systems and notify the
    sender immediately.
    > You
    > should not retain, copy or use this email for any purpose,
    nor disclose
    > all or
    > any part of its content to any other person.
    >
    >
    > --
    > For the archives, go to:
    http://lists.xpedior.com/forte-users and use
    > the login: forte and the password: archive. To
    unsubscribe, send in a new
    > email the word: 'Unsubscribe' to:
    forte-users-requestlists.xpedior.com
    For the archives, go to:
    http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe,
    send in a new
    email the word: 'Unsubscribe' to:
    forte-users-requestlists.xpedior.com

    Hi,
    Unfortunatly, Forte does not provide SMTP and POP3 protocoles.
    But, you can use External connections to do it if you need.
    You can find a simple SMTP send mail sample code on
    http://perso.club-internet.fr/dnguyen/ . The receive should be as easy as the send.
    For MIME base 64 encoding and decoding, it should last one or two weeks of coding
    (if you need optimization).
    One advantage of coding this in Tool directly is the portability.
    In your case, on NT, you could also interface with MAPI using for instance the
    ActiveX interface.
    By that way, you will already have SMTP, POP3 and MIME.
    Hope this helps,
    Daniel Nguyen
    Freelance Forte Consultant
    http://perso.club-internet.fr/dnguyen/
    edwardsmjwillis.com a écrit:
    Hi,
    Our Forte development team are currently investigating how we can add internet
    mail capabilities to a Forte application. Our application needs to send/receive
    mails from a mail server in an NT environment. Does forte provide SMTP and POP3
    protocol support (libraries) so that we can use external connection class to
    connect to the server and send/ receive mails or do we have to use third party
    controls ?.
    Any help regarding code examples or third party solutions would be appreciated.
    Thanks in advance
    Mark J Edwards
    Senior Technical Specialist
    Willis
    Email: edwardsmjwillis.com
    The information in this email and in any attachments is confidential and may be
    privileged. If you are not the intended recipient, please destroy this message,
    delete any copies held on your systems and notify the sender immediately. You
    should not retain, copy or use this email for any purpose, nor disclose all or
    any part of its content to any other person.
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • Forte SMTP and POP3 Support

    Hi,
    Our Forte development team are currently investigating how we can add internet
    mail capabilities to a Forte application. Our application needs to send/receive
    mails from a mail server in an NT environment. Does forte provide SMTP and POP3
    protocol support (libraries) so that we can use external connection class to
    connect to the server and send/ receive mails or do we have to use third party
    controls ?.
    Any help regarding code examples or third party solutions would be appreciated.
    Thanks in advance
    Mark J Edwards
    Senior Technical Specialist
    Willis
    Email: edwardsmjwillis.com
    The information in this email and in any attachments is confidential and may be
    privileged. If you are not the intended recipient, please destroy this message,
    delete any copies held on your systems and notify the sender immediately. You
    should not retain, copy or use this email for any purpose, nor disclose all or
    any part of its content to any other person.

    Hi,
    Unfortunatly, Forte does not provide SMTP and POP3 protocoles.
    But, you can use External connections to do it if you need.
    You can find a simple SMTP send mail sample code on
    http://perso.club-internet.fr/dnguyen/ . The receive should be as easy as the send.
    For MIME base 64 encoding and decoding, it should last one or two weeks of coding
    (if you need optimization).
    One advantage of coding this in Tool directly is the portability.
    In your case, on NT, you could also interface with MAPI using for instance the
    ActiveX interface.
    By that way, you will already have SMTP, POP3 and MIME.
    Hope this helps,
    Daniel Nguyen
    Freelance Forte Consultant
    http://perso.club-internet.fr/dnguyen/
    edwardsmjwillis.com a écrit:
    Hi,
    Our Forte development team are currently investigating how we can add internet
    mail capabilities to a Forte application. Our application needs to send/receive
    mails from a mail server in an NT environment. Does forte provide SMTP and POP3
    protocol support (libraries) so that we can use external connection class to
    connect to the server and send/ receive mails or do we have to use third party
    controls ?.
    Any help regarding code examples or third party solutions would be appreciated.
    Thanks in advance
    Mark J Edwards
    Senior Technical Specialist
    Willis
    Email: edwardsmjwillis.com
    The information in this email and in any attachments is confidential and may be
    privileged. If you are not the intended recipient, please destroy this message,
    delete any copies held on your systems and notify the sender immediately. You
    should not retain, copy or use this email for any purpose, nor disclose all or
    any part of its content to any other person.
    For the archives, go to: http://lists.xpedior.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: forte-users-requestlists.xpedior.com

  • To set path of SMTP and POP3

    hello sir
    i m old to java but new to java mail.........
    i m intrested in making a mail application and in several tutorials i have read that we have to set SMTP and POP server.........but i can only work on my machine and does not know my SMTP and POP3 server name .so what shoud i do.........
    i m desperete to make this mail application.........
    plz help me out.....................plz please
    thank you
    gaurav

    Hello,
    Crystal reports is for a long time not anymore supported by Microsoft. 
    Moreover for sure not in this forum for api's components and classes for the user interface Windows Forms
    Try direct the SAP community for Crystal reports for .Net
    http://scn.sap.com/community/crystal-reports
    Success
    Cor

  • SMTP and POP3 connector for ORACLE8i

    I've heard that there is a SMTP and POP3 connector build in into
    the ORACLE8i Release ?
    I saw this on a technical demonstraion ...
    Now i look for the documentation and configuration hints.
    Where to look - or isn't it yet available ?
    Thanks in advance
    JACK
    null

    Properties.put("mail.smtp.host","www.hotmail.com");
    ... is correct, but if you are permitted to make a connection I'd be surprised. Well, no you can't, the buggers won't let you. You need to use Pop3 + yahoo and be a registered user, eg;-
    Store.connect("pop.mail.yahoo.com", -1, "yourIDname", "yourPassword");

  • SMTP of POP3 Mail error ! help me !

    i want to use a  POP3 mail account to auto send my test report to some mailbox. And i try to use the labview7.0 example vi  named "E-Mail Notification.vi". But it seems no work. Because my pop3 mail account need username and password. But the example doesnot  request me to input the username  and password . How to do it realize my aim? Hope for help !

    Hi Apple James,
    Quote from the KB link:
    By default, LabVIEW sends plain text. For a server to use HTML to read an e-mail, the header must specify that this particular email is formatted using HTML. The header is created by a SubVI two levels down into the email VI. To send formatted email one must find the VI that writes the header and change the input to this VI from "text/plain" to "text/html".
    Please see: http://digital.ni.com/public.nsf/websearch/E9544A158AFE8D1C8625705400751DE1?OpenDocument
    Thanks
    Kurt
    Applications Engineer
    NIUK & Ireland
    Message Edited by Kurt NI AE on 11-08-2006 03:31 AM

  • Need smtp and pop3 host for hotmail

    do you know what is adress for hotmail outgoing server
    like smtp.mail.yahoo.com for yahoo

    Properties.put("mail.smtp.host","www.hotmail.com");
    ... is correct, but if you are permitted to make a connection I'd be surprised. Well, no you can't, the buggers won't let you. You need to use Pop3 + yahoo and be a registered user, eg;-
    Store.connect("pop.mail.yahoo.com", -1, "yourIDname", "yourPassword");

  • Smtp and pop3 protocol

    hi everybody,
    i want to develop my own implementation of pop3 and smtp protocols in java(i.e without using java mail api).
    can anybody tell me how to contact other smtp server through my program.
    bye

    For communications, use Sockets.
    For what to send over them, see the following:
    SMTP - RFC 821: ftp://ftp.isi.edu/in-notes/std/std10.txt
    POP3 - RFC 1939: ftp://ftp.isi.edu/in-notes/std/std53.txt
    ...it's all in there.
    HTH,
    Fredrik

  • Email password smtp and pop3 server problem

    My mail is continually asking me to enter password for my hotmail account, both for the pop3.live.com and smtp.live.com. It gives me an option to either enter my password or cancel, and neither option works. It is rejecting the password and my email won't work because of this! Is there a w way I can re set the password or anything?

    For communications, use Sockets.
    For what to send over them, see the following:
    SMTP - RFC 821: ftp://ftp.isi.edu/in-notes/std/std10.txt
    POP3 - RFC 1939: ftp://ftp.isi.edu/in-notes/std/std53.txt
    ...it's all in there.
    HTH,
    Fredrik

  • RoadRunner SMTP and Mac Mail problem

    Hello all. I have set up my new iMac, and am attempting to get my RoadRunner email working. The inbound server (POP) works fine. I can receive email without a hitch. However, the outgoing server is not working, and I get an error message saying that I need to double check the password and username. I have verified with RoadRunner that my server addresses, username, and password are all correct. The RR webmail works fine sending/receiving. The issue seems to be with the Mac Mail program. Any ideas on how I can get it going? I am connected to the internet via my Airport Express wireless network if that matters. (And a RR Cable Modem.) Thank you for any help!

    Road Runner SMTP mail is surprisingly difficult to get working with Apple Mail, even if you have all the values exactly correct. I had this issue at a client last week, and these are the instructions I followed to get it working. See the second post in the thread - it does have some confusing steps, so read the following posts too, which clarify them. Basically you're going to set up the account again, manually, but with no SMTP authentication.
    http://discussions.apple.com/thread.jspa?messageID=6964913
    Hope that helps
    Matt

  • Secure SMPT and POP3

    How can I setup a secure SMTP and POP3 connection using the Java mail API?

    An article on setting up JavaMail to use SSL secured and POP3 connections:
    http://www.javaworld.com/javatips/jw-javatip115.html
    I guess you should be able to adapt it for SMTP.

  • Sharing network via Airport, can browse but no mail, smtp or pop3

    I have the G5 connected via ethernet to the router box they gave me, fine mail and browsing are super duper, So now I have the Laptop G4 (Both on 10.4.7)
    On the G5 I crated a network and enabled internet sharing in system prefs using Airport (No airport base stations, just the computer to computer) On the G4 I joined the network, and could not get to any web sites, Ahhh Little Snitch! So I turned off little snitch on the G5 and low and behold the G4 now has splendid access with safari, I am actually on the G4 penning this. But I want to use only the G4 to send and receive mails (The G4 is with me all the time, and the mails get so far out of sync) But the .mac and my 4 pop3 mail boxes all time out. Is it possible to access mail through the shared connection? Thanks Jed

    I don't know if you have solved your problem but I think I can help you. I will keep it simple because you seem to know what is plotting.
    1. On your G4 laptop, open your system prefs and go to 'Sharing',
    2. Now, click on the 'Firewall' tab. To your right, click on the button labeled 'New'.
    3. On the sheet displayed, the first dropdown list is pre-sellected as 'CVS', sellect it end change it to 'Other'.
    3.1. Now your fields will activate for input. In the field labeled 'TCP Port Number', type '110' (this is the default port number for POP and POP3).
    3.2. In the last field labeled 'Description', type your own descroption like 'POP3 port for G4' (just an idea). Save your settings by pressing the 'OK' button.
    You should now be ready to retrieve your messages using your chosen mail app.
    Follow the same instructions as above to open a SMTP port, but this time type '25' in the field labeled 'TCP Port Number'.
    Give it a meaningfull name like 'SMTP port for G4' (yet another idea). And that is it!
    Hope it was helpfull. Kind regards.
    17" iMac   Mac OS X (10.4.7)  
    17" iMac   Mac OS X (10.4.7)  
    17" iMac   Mac OS X (10.4.7)  

  • Issues with Mail and SMTP and Gmail Accounts

    So this isn't a question....more like a solution that I had to figure out. 
    We have multiple gmail accounts in our family and after upgrading to OSC Yosemite our gmail accounts wen't haywire.  My wife was sending emails that eventually were sent from my gmail account (mass neighborhood emails at that.....and all replies came to me instead of her).  I spent about 2 hours investigating and put together several different threads that finally fixed out problem.  The root of the issue is that you can share the same Incoming Mail Server for all of your gmail accounts and your mail will go to the accounts that it is supposed to go to, but you have to have individual Outgoing Mail Servers for each of your accounts otherwise all outgoing mail will come from one account only.  I don't know why this happened, it is a pain in the butt, but here's how I fixed it with 3 gmail accounts running through 1 mac.    
    1st - you need to remove all of your gmail accounts from mail via Internet Accounts in Settings. Just highlight the account and hit the minus sign at the bottom.  You won't lose anything if you have your gmail settings set to default which backs everything up to Google's servers....it will all load back to you mac and it will all be available online at gmail.com
    2nd - you need to add back all of your accounts one at a time (and follow all of the following steps for each account before adding another).  Select the plus sign and choose Google (for gmail accounts only). 
    3rd - Give your gmail account a recognizable name in the "Name" field (if you have multiple Gmail accounts to add, you will want to distinguish between them).
    4th - type in your username ([email protected]) and password.  Make sure to add the suffix @gmail.com. 
    5th - Check the boxes that you want to add to your mac (mail, contacts, calendars, messages, notes). 
    6th - Click the "Details" button to ensure that you have an adequate description (see # 3 above) if you are going to have multiple gmail accounts to add. 
    7th - Open the Mail app.
    8th - From Mail Preferences/Account Information Tab - make sure that you account is Enabled (check box next to "Enable Account", make sure that you have an adequate description name, email address is correct, Incoming mail server is imap.gmail.com, Username is your normal gmail login username (absent any suffix like .gmail.com), password is your gmail password. 
    9th - Then, from Preferences click on the Advanced tab and....Uncheck "Automatically detect and maintain account settings".
    10th - Then, go back to Account Information Tab and.....from the Outgoing Mail Server (SMTP) dropdown box, select Edit SMTP List....
    11th -  You need to create an individual SMTP Server Account for each gmail account that you plan to add.
    12th - To do this click the plus button.  Server Name should always be smtp.gmail.com.  Type in your own Description (I recommend naming it after the gmail account that you plan to attach it to). 
    13th - TLS Certificate should be "None"
    14th - Click the Advanced Tab - From here, uncheck the box for "Automatically detect and maintain account settings".  Then make sure Port is 587 (default is 25 for some ungodly reason).  Check the box for "Use SSL".
    15th - Set authentication to "Password".  User name MUST contain a suffice (i.e [email protected]).  Password is your normal gmail password. 
    16th - Click OK. 
    17th - Now your back at Preferences/Account Information - Link your account to the SMTP server that you just created by using the dropdown box next to Outgoing Mail Server (SMTP). 
    18th - Save all changes and close out of Mail App. 
    19th - Restart Mail and recheck steps 8-15....for some reason my passwords kept getting erased, but they eventually saved and took. 
    20th - Add another gmail account by following these steps and then recheck all along the way for passwords, suffixes, everything.  You will want to make sure that your accounts are all properly linked to their respective Outgoing Mail Servers (hence the distinct naming descriptions).   
    21st - Once you have added multiple accounts send email between them to make sure that they are being sent from and received to the correct accounts. 

    Wow! Oh my goodness Patrick, thank you so much man. That's a ton of informatiion to take the time to write out step by step and share with strangers.  I really, really am grateful to you.  I've been dealing with this for a month, half the month I kept changing my passwords and kept assuming I was making some mistake.  It used to work fine.  About a week ago I started looking for a solution and couldn't find one that worked. 
    You have changed that sir!  I'm good to go, stress level will lower when I am on my Mac, and I'm so glad to not have all these messages popping back up that I was done with! 
    Muchos Gracias Amigo!  Owe you one...

  • Problem while sending a mail with smtp and ssl

    Hi all,
    I am new to java mail . I have downloaded one java program to send the mail. I have configured smt and port address.And my System firewall is also in off mode
    Still i am unable to send the mail
    The following code is my program import java.util.Properties;
    import javax.mail.Authenticator;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.URLName;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    import com.sun.mail.smtp.SMTPSSLTransport;
      To use this program, change values for the following three constants,
        SMTP_HOST_NAME -- Has your SMTP Host Name
        SMTP_AUTH_USER -- Has your SMTP Authentication UserName
        SMTP_AUTH_PWD  -- Has your SMTP Authentication Password
      Next change values for fields
      emailMsgTxt  -- Message Text for the Email
      emailSubjectTxt  -- Subject for email
      emailFromAddress -- Email Address whose name will appears as "from" address
      Next change value for "emailList".
      This String array has List of all Email Addresses to Email Email needs to be sent to.
      Next to run the program, execute it as follows,
      SendMailUsingAuthentication authProg = new SendMailUsingAuthentication();
    public class SendMailUsingAuthentication
    //private static final String SMTP_HOST_NAME = "smtp.mail.yahoo.com";
         private static final String SMTP_HOST_NAME = "smtp.gmail.com";
      private static final String SMTP_AUTH_USER = "admijn.ramd";
      private static final String SMTP_AUTH_PWD  = "hairamu";
      private static final int SMTP_PORT  = 465;
      private static final String emailMsgTxt      = "Online Order Confirmation Message. Also include the Tracking Number.";
      private static final String emailSubjectTxt  = "Order Confirmation Subject";
      private static final String emailFromAddress = "[email protected]";
      // Add List of Email address to who email needs to be sent to
      private static final String[] emailList = {"[email protected]", "[email protected]"};
      public static void main(String args[]) throws Exception
        SendMailUsingAuthentication smtpMailSender = new SendMailUsingAuthentication();
        smtpMailSender.postMail( emailList, emailSubjectTxt, emailMsgTxt, emailFromAddress);
      public void postMail( String recipients[ ], String subject,
                                String message , String from)
           try{
        boolean debug = false;
         //Set the host smtp address
    //  Set the host smtp address
         Properties props = new Properties();
         props.put("mail.transport.protocol", "smtp");
         props.put("mail.smtp.port", SMTP_PORT);
         props.put("mail.smtp.starttls.enable","true");
         props.put("mail.smtp.host", SMTP_HOST_NAME);
         props.put("mail.smtp.auth", "true");
          props.put("mail.smtp.socketFactory.port", SMTP_PORT);
         props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
          props.put("mail.smtp.socketFactory.fallback", "false");
          SecurityManager security = System.getSecurityManager();
         Authenticator auth = new SMTPAuthenticator();
         Session session = Session.getDefaultInstance(props, auth);
         session.setDebug(debug);
         // create a message
         Message msg = new MimeMessage(session);
         // set the from and to address
         InternetAddress addressFrom = new InternetAddress(from);
         msg.setFrom(addressFrom);
         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);
         // Setting the Subject and Content Type
         msg.setText(message);
         msg.setSubject(subject);
         msg.setContent(message, "text/plain");
         Transport.send(msg);
         }catch (MessagingException e) {
              // TODO: handle exception
              e.printStackTrace();
    * SimpleAuthenticator is used to do simple authentication
    * when the SMTP server requires it.
    private class SMTPAuthenticator extends javax.mail.Authenticator
    public PasswordAuthentication getPasswordAuthentication()
         try{
    String username = SMTP_AUTH_USER;
    String password = SMTP_AUTH_PWD;
    System.out.println("username "+ username+" Password"+password);
    return new PasswordAuthentication(username, password);
         }catch (Exception e) {
         return null;
    And i am getting the following exceptions
    javax.mail.MessagingException: Exception reading response;
      nested exception is:
         javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
         at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1611)
         at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1369)
         at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)
         at javax.mail.Service.connect(Service.java:310)
         at javax.mail.Service.connect(Service.java:169)
         at javax.mail.Service.connect(Service.java:118)
         at javax.mail.Transport.send0(Transport.java:188)
         at javax.mail.Transport.send(Transport.java:118)
         at com.FutureSoft.org.SendingMail.SendMailUsingAuthentication.postMail(SendMailUsingAuthentication.java:123)
         at com.FutureSoft.org.SendingMail.SendMailUsingAuthentication.main(SendMailUsingAuthentication.java:70)
    Caused by: javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
         at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)
         at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)
         at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110)
         at java.io.BufferedInputStream.fill(Unknown Source)
         at java.io.BufferedInputStream.read(Unknown Source)
         at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:88)
         at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1589)
         ... 9 more                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    hi neuro11
    the following code is for sending mail its is working fine in my system, just change the
    SMTP_AUTH_USER = "tina.numi"; with u r email user name
    SMTP_AUTH_PWD = "abdcde"; u r gmail password
    emailFromAddress = "[email protected]"; ur gmail addres
    emailList = {"[email protected]"}; receipient list .
    and u must sure that u r internet is on and firewall should be off . some times firewall restricts you to communicate with gmail port number
    Please make u r firewall off and source code is
    package com.FutureSoft.org.SendingMail;
    Some SMTP servers require a username and password authentication before you
    can use their Server for Sending mail. This is most common with couple
    of ISP's who provide SMTP Address to Send Mail.
    This Program gives any example on how to do SMTP Authentication
    (User and Password verification)
    This is a free source code and is provided as it is without any warranties and
    it can be used in any your code for free.
    Author : Sudhir Ancha
    import java.util.Properties;
    import javax.mail.Authenticator;
    import javax.mail.Message;
    import javax.mail.MessagingException;
    import javax.mail.PasswordAuthentication;
    import javax.mail.Session;
    import javax.mail.Transport;
    import javax.mail.URLName;
    import javax.mail.internet.InternetAddress;
    import javax.mail.internet.MimeMessage;
    import com.sun.mail.smtp.SMTPSSLTransport;
      To use this program, change values for the following three constants,
        SMTP_HOST_NAME -- Has your SMTP Host Name
        SMTP_AUTH_USER -- Has your SMTP Authentication UserName
        SMTP_AUTH_PWD  -- Has your SMTP Authentication Password
      Next change values for fields
      emailMsgTxt  -- Message Text for the Email
      emailSubjectTxt  -- Subject for email
      emailFromAddress -- Email Address whose name will appears as "from" address
      Next change value for "emailList".
      This String array has List of all Email Addresses to Email Email needs to be sent to.
      Next to run the program, execute it as follows,
      SendMailUsingAuthentication authProg = new SendMailUsingAuthentication();
    public class SendMailUsingAuthentication
    //private static final String SMTP_HOST_NAME = "smtp.mail.yahoo.com";
         private static final String SMTP_HOST_NAME = "smtp.gmail.com";
      private static final String SMTP_AUTH_USER = "tina.numi";// gmail username
      private static final String SMTP_AUTH_PWD  = "abdcde";// gmail password
      private static final int SMTP_PORT  = 465;
      private static final String emailMsgTxt      = "Online Order Confirmation Message. Also include the Tracking Number.";
      private static final String emailSubjectTxt  = "Order Confirmation Subject";
      private static final String emailFromAddress = "[email protected]";// gmail id
      // Add List of Email address to who email needs to be sent to
      private static final String[] emailList = {"[email protected]"};
      public static void main(String args[]) throws Exception
        SendMailUsingAuthentication smtpMailSender = new SendMailUsingAuthentication();
        smtpMailSender.postMail( emailList, emailSubjectTxt, emailMsgTxt, emailFromAddress);
      public void postMail( String recipients[ ], String subject,
                                String message , String from)
           try{
        boolean debug = false;
         //Set the host smtp address
    //  Set the host smtp address
         Properties props = new Properties();
         props.put("mail.transport.protocol", "smtp");
         props.put("mail.smtp.port", SMTP_PORT);
         props.put("mail.smtp.starttls.enable","true");
         props.put("mail.smtp.host", SMTP_HOST_NAME);
         props.put("mail.smtp.auth", "true");
          props.put("mail.smtp.socketFactory.port", SMTP_PORT);
         props.put("mail.smtp.socketFactory.class", "javax.net.ssl.SSLSocketFactory");
          props.put("mail.smtp.socketFactory.fallback", "false");
          SecurityManager security = System.getSecurityManager();
         Authenticator auth = new SMTPAuthenticator();
         Session session = Session.getInstance(props, auth);
         session.setDebug(debug);
         // create a message
         Message msg = new MimeMessage(session);
         // set the from and to address
         InternetAddress addressFrom = new InternetAddress(from);
         msg.setFrom(addressFrom);
         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);
         // Setting the Subject and Content Type
         msg.setText(message);
         msg.setSubject(subject);
         msg.setContent(message, "text/plain");
         Transport t = session.getTransport("smtps");
         try {
              t.connect(SMTP_HOST_NAME, SMTP_AUTH_USER, SMTP_AUTH_PWD);
              t.sendMessage(msg, msg.getAllRecipients());
         catch(Exception e){}
         finally
              t.close();
         }catch (MessagingException e) {
              // TODO: handle exception
              e.printStackTrace();
    * SimpleAuthenticator is used to do simple authentication
    * when the SMTP server requires it.
    private class SMTPAuthenticator extends javax.mail.Authenticator
    public PasswordAuthentication getPasswordAuthentication()
         try{
    String username = SMTP_AUTH_USER;
    String password = SMTP_AUTH_PWD;
    System.out.println("username "+ username+" Password"+password);
    return new PasswordAuthentication(username, password);
         }catch (Exception e) {
         return null;
    try this . all the best

Maybe you are looking for

  • How to create a simple spot the difference game

    Hi everyone. I'm new to the forums and relatively new to flash, so bear with me I'm looking to do a very simple spot the difference game using flash CS3 and actionscript 2 for a school project. As it stands, I have 2 images on separate layers on a ti

  • DBIF_RSQL_SQL_ERROR while doing a transport from DEV to PROD

    Hi, We are trying to transport some requests from our BW Development to BW Production. As we are importing the request we are facing the following two runtime errors in Dev. 1.   Database error text........: "ORA-01654: unable to extend index SAPSR3.

  • I cann't typing letter P and backspace key

    is anyone having same problem? i can type any letter except letter P and backspace key. it was work yesterday.I reseted whole system but still same....should i take thi to appl store? i stil have a warranty....... please tell me the solution if sombo

  • Using Pages as a slide show

    In a lecture class the other day I wanted to show photos of Aztec and early Spanish Christian architecture ..... I couldn't seem to drop images purloined from the web into iPhoto ..... so I created a Pages WP file and dropped the photos there. In cla

  • Account not eligible to buy gifts. Why?

    I have opened a new account and purchased music already today. However I did want to buy a gift certificate. I got a message saying that my account was not eligle to buy gifts!! Why?