Javamail do not run

Discussion in 'Parallels Website and Forum' started by DavidIme, May 23, 2011.

  1. DavidIme

    DavidIme Bit poster

    Messages:
    1
    Hi,
    I have a problem sendin mail via Javamail.
    Here is the code:
    Properties props = new Properties();
    props.setProperty("mail.smtp.host", "pop3.lookatnenes.com");
    props.setProperty("mail.smtp.starttls.enable", "true");
    props.setProperty("mail.smtp.port", "25");
    props.setProperty("mail.smtp.user", "[email protected]");
    props.setProperty("mail.smtp.auth", "true");

    // Preparamos la sesion

    Session session = Session.getDefaultInstance(props, null);
    MimeMessage message = new MimeMessage(session);
    message.setFrom(new InternetAddress("[email protected]"));
    message.addRecipient(Message.RecipientType.TO,new InternetAddress("[email protected]"));
    message.setSubject("Hola");
    message.setText("Test");

    Transport t;
    t = session.getTransport("smtp");

    t.connect("pop3.lookatnenes.com","[email protected]", "mypassword");

    t.sendMessage(message, message.getAllRecipients());
    t.close();


    I receive the exception:
    Send failed; nested exception is: javax.mail.MessagingException: decompression_failure: remotely generated; fatal; nested exception is: gnu.javax.net.ssl.provider.AlertException: decompression_failure: remotely generated

    Could you help me please?
    I do not have any idea what this exception means.
    Thanks a lot
     

Share This Page