Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E132F10D4D for ; Tue, 17 Sep 2013 13:16:57 +0000 (UTC) Received: (qmail 54084 invoked by uid 500); 17 Sep 2013 13:16:54 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 53851 invoked by uid 500); 17 Sep 2013 13:16:54 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 53821 invoked by uid 99); 17 Sep 2013 13:16:52 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Sep 2013 13:16:52 +0000 Date: Tue, 17 Sep 2013 13:16:51 +0000 (UTC) From: "Allen Xudong Cheng (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (EMAIL-132) Can't delivery to another recipients when send mail to one recipient failed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/EMAIL-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13769490#comment-13769490 ] Allen Xudong Cheng commented on EMAIL-132: ------------------------------------------ Hi, I found a way to fix this bug, it is set property "mail.smtp.sendpartial" & "mail.smtps.sendpartial" to true. e.g: for (String property : Arrays.asList("mail.smtp.sendpartial", "mail.smtps.sendpartial")) { if (System.getProperty(property) == null) { System.setProperty(property, "true"); } } LINK:https://issues.jenkins-ci.org/browse/JENKINS-9006 > Can't delivery to another recipients when send mail to one recipient failed > --------------------------------------------------------------------------- > > Key: EMAIL-132 > URL: https://issues.apache.org/jira/browse/EMAIL-132 > Project: Commons Email > Issue Type: Bug > Affects Versions: 1.2, 1.3, 1.3.1 > Reporter: Allen Xudong Cheng > > I want to send email to multiple recipients by using Email.addTo(). But I found when send mail to one recipient failed(e.g. email address invalid), another can't got the email. Here is Exception stack: > 09-17 07:48:48,804|ERROR|ortTask_tra_event_81| EmailUtils|Sending the email to the following server failed : xxxxx:xxxx > org.apache.commons.mail.EmailException: Sending the email to the following server failed : 172.24.1.82:25 > at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1242)[131:org.apache.commons.email:1.2] > at org.apache.commons.mail.Email.send(Email.java:1267)[131:org.apache.commons.email:1.2] > at com.swimap.prs.utils.email.EmailUtils.sendEmail(EmailUtils.java:72)[125:prs.utils.common:1.9.8.1-SNAPSHOT] > at com.swimap.prs.application.dataexport.impl.corbareport.traditional.event.ManualEventTask.run(ManualEventTask.java:48)[220:prs.application.dataexport.impl:1.9.8.1-SNAPSHOT] > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[:1.6.0_43] > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_43] > at com.swimap.prs.application.dataexport.impl.corbareport.traditional.event.ManualEventTask.run(ManualEventTask.java:48)[220:prs.application.dataexport.impl:1.9.8.1-SNAPSHOT] > at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439)[:1.6.0_43] > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)[:1.6.0_43] > at java.util.concurrent.FutureTask.run(FutureTask.java:138)[:1.6.0_43] > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)[:1.6.0_43] > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)[:1.6.0_43] > at java.lang.Thread.run(Thread.java:662)[:1.6.0_43] > Caused by: javax.mail.SendFailedException: Invalid Addresses; > nested exception is: > com.sun.mail.smtp.SMTPAddressFailedException: 530 5.7.1 Reason: Your Outlook settings may be incorrect, see http://xxxxx. Not allowed send to: asdkljfakld@kadjfka.com > at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1873)[82:javax.mail:1.4.5] > at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1120)[82:javax.mail:1.4.5] > at javax.mail.Transport.send0(Transport.java:195)[58:javax.mail:1.4.4] > at javax.mail.Transport.send(Transport.java:124)[58:javax.mail:1.4.4] > at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1232)[131:org.apache.commons.email:1.2] > ... 16 more > Caused by: com.sun.mail.smtp.SMTPAddressFailedException: 530 5.7.1 Reason: Your Outlook settings may be incorrect, see http://xxxxx. Not allowed send to: asdkljfakld@kadjfka.com > at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1771)[82:javax.mail:1.4.5] > ... 20 more > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira