commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: cvs commit: jakarta-commons-sandbox/email/src/java/org/apache/commons/mail Email.java
Date Sun, 09 Mar 2003 23:01:03 GMT


On Sun, 9 Mar 2003 quintonm@apache.org wrote:

> Date: 9 Mar 2003 19:44:53 -0000
> From: quintonm@apache.org
> Reply-To: Jakarta Commons Developers List <commons-dev@jakarta.apache.org>
> To: jakarta-commons-sandbox-cvs@apache.org
> Subject: cvs commit:
>     jakarta-commons-sandbox/email/src/java/org/apache/commons/mail Email.java
>
> quintonm    2003/03/09 11:44:53
>
>   Modified:    email/src/java/org/apache/commons/mail Email.java
>   Log:
>   Mail messages can now be set as long as there is atleast
>   one to, cc, or bcc address.
>
>   Revision  Changes    Path
>   1.7       +7 -6      jakarta-commons-sandbox/email/src/java/org/apache/commons/mail/Email.java
>
>   Index: Email.java
>   ===================================================================
>   RCS file: /home/cvs/jakarta-commons-sandbox/email/src/java/org/apache/commons/mail/Email.java,v
>   retrieving revision 1.6
>   retrieving revision 1.7
>   diff -u -r1.6 -r1.7
>   --- Email.java	7 Mar 2003 16:08:17 -0000	1.6
>   +++ Email.java	9 Mar 2003 19:44:53 -0000	1.7
>   @@ -625,15 +625,16 @@
>                throw new MessagingException("Sender address required");
>            }
>
>   +        if (toList == null && ccList == null && bccList == null)
>   +        {
>   +            throw new MessagingException(
>   +                "At least one receiver address required");
>   +
>   +        }
>            if (toList != null)
>            {
>                message.setRecipients(Message.RecipientType.TO,
>                    toInternetAddressArray(toList));
>   -        }
>   -        else
>   -        {
>   -            throw new MessagingException(
>   -                "At least one receiver address required");
>            }
>
>            if (ccList != null)
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message