On 2 February 2011 08:42, Trasca Virgil <[email protected]> wrote: > Hi, > > I am trying to send an email using commons-net and a MS Exchange > server.
I think you mean Commons EMAIL - subject changed accordingly. > All the server connect settings were double checked and are correct. Also some > firewall settings were adjusted to be sure nothing stays in between that could > block the communication. > > > Still things are not working and following is the stack trace. Any help will > be > greatly appreciated. > > > org.apache.commons.mail.EmailException: Sending the email to the following > server failed : CIBSE-MAIL.cibse.org:25 > at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242) > at org.apache.commons.mail.Email.send(Email.java:1267) > at > com.smartwish.documentburster.sender.EmailSender.doSend(EmailSender.java:148) > at com.smartwish.documentburster.sender.Sender.send(Sender.java:89) > at > com.smartwish.documentburster.engine.SimpleBurster.endDocument(SimpleBurster.java:272) > > at > com.smartwish.documentburster.engine.SimpleBurster.doBurst(SimpleBurster.java:135) > > at com.smartwish.documentburster.facade.Facade.doBurst(Facade.java:59) > at > com.smartwish.documentburster.DocumentBurster.main(DocumentBurster.java:63) > Caused by: javax.mail.MessagingException: Could not connect to SMTP host: > CIBSE-MAIL.cibse.org, port: 25, response: 421 Response 421 means what? Googling "SMTP 421" should help you here. This does not appear to be a Commons EMAIL problem. > at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1694) > at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:525) > at javax.mail.Service.connect(Service.java:313) > at javax.mail.Service.connect(Service.java:172) > at javax.mail.Service.connect(Service.java:121) > at javax.mail.Transport.send0(Transport.java:190) > at javax.mail.Transport.send(Transport.java:120) > at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1232) > ... 7 more > > > Thank you, > Virgil --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
