Hi, I am trying to send an email using commons-net and a MS Exchange server. 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 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