commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (EMAIL-132) Can't delivery to another recipients when send mail to one recipient failed
Date Tue, 08 Oct 2013 20:10:42 GMT

    [ https://issues.apache.org/jira/browse/EMAIL-132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13789629#comment-13789629
] 

Thomas Neidhart commented on EMAIL-132:
---------------------------------------

This should already be possible by doing the following:

{noformat}
Email email = ....
Session session = email.getSession();
session.setProperty("mail.smtp.sendpartial", true);
email.send();
{noformat}

Ideally, the Email class should provide a "setSendPartial(boolean)" method similar to other
setters, e.g. for various ssl related settings. 

> 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 was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message