commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trasca Virgil <>
Subject [commons-net] - Issue with commons-net and MS Exchange email server
Date Wed, 02 Feb 2011 08:42:19 GMT
       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 :
 at org.apache.commons.mail.Email.sendMimeMessage(
 at org.apache.commons.mail.Email.send(
 at com.smartwish.documentburster.sender.Sender.send(


 at com.smartwish.documentburster.facade.Facade.doBurst(
 at com.smartwish.documentburster.DocumentBurster.main(
Caused by: javax.mail.MessagingException: Could not connect to SMTP host:, port: 25, response: 421
 at com.sun.mail.smtp.SMTPTransport.openServer(
 at com.sun.mail.smtp.SMTPTransport.protocolConnect(
 at javax.mail.Service.connect(
 at javax.mail.Service.connect(
 at javax.mail.Service.connect(
 at javax.mail.Transport.send0(
 at javax.mail.Transport.send(
 at org.apache.commons.mail.Email.sendMimeMessage(
 ... 7 more

Thank you,
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message