You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gokul Nanthakumar C (Created) (JIRA)" <ji...@apache.org> on 2012/02/28 05:58:49 UTC
[jira] [Created] (EMAIL-114) Methods to add multiple To, cc, Bcc is
desired
Methods to add multiple To, cc, Bcc is desired
----------------------------------------------
Key: EMAIL-114
URL: https://issues.apache.org/jira/browse/EMAIL-114
Project: Commons Email
Issue Type: Improvement
Reporter: Gokul Nanthakumar C
Currently if we have list of email address as string adding them to mail is possible only by looping or converting them as list of java.mail.internet.InternetAddress.
Method like addTo(String[] emails) is desired.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (EMAIL-114) Methods to add multiple To, cc, Bcc is
desired
Posted by "Gokul Nanthakumar C (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/EMAIL-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gokul Nanthakumar C updated EMAIL-114:
--------------------------------------
Attachment: arrayOfStringForAddresses.patch
Patch for new Methods addTo(String[]), addCc(String[]), addBcc(String[])
> Methods to add multiple To, cc, Bcc is desired
> ----------------------------------------------
>
> Key: EMAIL-114
> URL: https://issues.apache.org/jira/browse/EMAIL-114
> Project: Commons Email
> Issue Type: Improvement
> Reporter: Gokul Nanthakumar C
> Attachments: arrayOfStringForAddresses.patch
>
>
> Currently if we have list of email address as string adding them to mail is possible only by looping or converting them as list of java.mail.internet.InternetAddress.
> Method like addTo(String[] emails) is desired.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (EMAIL-114) Methods to add multiple To, cc, Bcc
is desired
Posted by "Jochen Wiedmann (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/EMAIL-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508355#comment-13508355 ]
Jochen Wiedmann commented on EMAIL-114:
---------------------------------------
May I suggest that an IllegalArgumentException would be preferrable, so that we son't pollute the signature without need?
> Methods to add multiple To, cc, Bcc is desired
> ----------------------------------------------
>
> Key: EMAIL-114
> URL: https://issues.apache.org/jira/browse/EMAIL-114
> Project: Commons Email
> Issue Type: Improvement
> Reporter: Gokul Nanthakumar C
> Fix For: 1.3
>
> Attachments: arrayOfStringForAddresses.patch
>
>
> Currently if we have list of email address as string adding them to mail is possible only by looping or converting them as list of java.mail.internet.InternetAddress.
> Method like addTo(String[] emails) is desired.
--
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
[jira] [Resolved] (EMAIL-114) Methods to add multiple To, cc, Bcc
is desired
Posted by "Thomas Neidhart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/EMAIL-114?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Thomas Neidhart resolved EMAIL-114.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.3
Applied patch with minor changes in r1416248:
* throw an EmailException if the supplied array is null or empty
* minor javadoc changes
Thanks for the report and patch!
> Methods to add multiple To, cc, Bcc is desired
> ----------------------------------------------
>
> Key: EMAIL-114
> URL: https://issues.apache.org/jira/browse/EMAIL-114
> Project: Commons Email
> Issue Type: Improvement
> Reporter: Gokul Nanthakumar C
> Fix For: 1.3
>
> Attachments: arrayOfStringForAddresses.patch
>
>
> Currently if we have list of email address as string adding them to mail is possible only by looping or converting them as list of java.mail.internet.InternetAddress.
> Method like addTo(String[] emails) is desired.
--
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
[jira] [Commented] (EMAIL-114) Methods to add multiple To, cc, Bcc
is desired
Posted by "Thomas Neidhart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/EMAIL-114?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13508361#comment-13508361 ]
Thomas Neidhart commented on EMAIL-114:
---------------------------------------
I tried to be consistent with the existing setXXX methods, and the EmailException is already thrown atm, but I agree, an IAE would be more logical.
> Methods to add multiple To, cc, Bcc is desired
> ----------------------------------------------
>
> Key: EMAIL-114
> URL: https://issues.apache.org/jira/browse/EMAIL-114
> Project: Commons Email
> Issue Type: Improvement
> Reporter: Gokul Nanthakumar C
> Fix For: 1.3
>
> Attachments: arrayOfStringForAddresses.patch
>
>
> Currently if we have list of email address as string adding them to mail is possible only by looping or converting them as list of java.mail.internet.InternetAddress.
> Method like addTo(String[] emails) is desired.
--
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