Results 1 to 2 of 2
  1. #1
    iamjuan is offline Member
    Join Date
    Aug 2009
    Rep Power

    Smile Problems sending SMTP SSL with exchange, port 25

    I've some troubles sending to my Microsoft Exchange 25 SSL port (it has the same port for SSL and non SSL communications), with javaMail API:

    this._properties = new Properties();
    this._properties.put("", myHost);
    this._properties.put("mail.smtp.port", "25");
    this._properties.put("mail.smtp.auth", "true");
    this._properties.put("mail.smtp.ssl.enable", "true");
    this._properties.put("mail.smtp.starttls.enable"," true");
    this._properties.put("mail.debug", "true");
    this._properties.put("mail.from", "myDir@myDomaincom");
    this._properties.put("mail.smtp.auth.mechanisms", "LOGIN");
    this._properties.put("mail.transport.protocol","sm tps");
    this._properties.put("mail.smtp.socketFactory.clas s", "");
    this._properties.put("mail.smtp.socketFactory.fall back", "false");

    System.setProperty("", "ssl");

    this._autentificadorSMTP = new AutenticacionSMTP(emailuser, emailPass);
    this._session = Session.getInstance(this._properties, this._autentificadorSMTP);
    this._email = createContent());

    The server returns an answer that cannot parse the javaMail API: Unrecognized SSL message, plaintext connection?

    I've tried some combinations of properties but still gets the same error. I've validated that 465 or 587 ports doesnt work. The same code works fine for GMAIL 465 port.

    Any idea? Thanks

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


    Given that you are using a MS product, I would try an application that you have high confidence will work, like Outlook. Right now, you don't know that Exchange is working correctly.

Similar Threads

  1. Replies: 2
    Last Post: 08-24-2011, 04:32 PM
  2. Sending commands to Serial Port(COM1)
    By ali_sakar in forum Advanced Java
    Replies: 19
    Last Post: 10-02-2009, 07:33 PM
  3. sending a simple email message via SMTP
    By chahhchahh in forum Networking
    Replies: 5
    Last Post: 03-08-2009, 07:58 PM
  4. sending email without SMTP?
    By java_srinivasan in forum Advanced Java
    Replies: 1
    Last Post: 07-23-2008, 03:45 PM
  5. Problems sending file throught TCP sockets
    By Nite in forum Advanced Java
    Replies: 2
    Last Post: 08-04-2007, 09:01 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts