Re: [EMAIL] - Issue with commons-net and MS Exchange email server
On 2 February 2011 08:42, Trasca Virgil virgil_tra...@yahoo.com 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: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [EMAIL] - Issue with commons-net and MS Exchange email server
Hi Sebb, I goggled for SMTP 421 and I saw the meaning of it. I did not say it is a bug - I am only asking if people can give some hints as from where the problem can come. What I already tried * double checked the server settings to be ok * checked for firewalls/antivirus which might block the communication - it is not the case * goggled for SMTP 421 and saw it is a communication problem between the client and the server Thank you, Virgil From: sebb seb...@gmail.com To: Commons Users List user@commons.apache.org Sent: Wed, February 2, 2011 11:27:06 AM Subject: Re: [EMAIL] - Issue with commons-net and MS Exchange email server On 2 February 2011 08:42, Trasca Virgil virgil_tra...@yahoo.com 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: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [EMAIL] - Issue with commons-net and MS Exchange email server
Oops - wrong email account On 2/2/11 9:42 PM, Siegfried Goeschl wrote: Hi Trascs, some hints +) try telnet to connect to the SMTP port +) try the mail.debug system property to dump SMTP communication (see http://java.sun.com/products/javamail/javadocs/javax/mail/package-summary.html) +) use a conventional mail client to send email using the SMTP port Cheers, Siegfried Goeschl On 2/2/11 2:54 PM, Trasca Virgil wrote: Hi Sebb, I goggled for SMTP 421 and I saw the meaning of it. I did not say it is a bug - I am only asking if people can give some hints as from where the problem can come. What I already tried * double checked the server settings to be ok * checked for firewalls/antivirus which might block the communication - it is not the case * goggled for SMTP 421 and saw it is a communication problem between the client and the server Thank you, Virgil From: sebbseb...@gmail.com To: Commons Users Listuser@commons.apache.org Sent: Wed, February 2, 2011 11:27:06 AM Subject: Re: [EMAIL] - Issue with commons-net and MS Exchange email server On 2 February 2011 08:42, Trasca Virgilvirgil_tra...@yahoo.com 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: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org