catlett     01/06/27 12:57:04

  Modified:    mailer/src/org/apache/taglibs/mailer SendTag.java
  Log:
  enabled logging if the actual send fails
  
  Revision  Changes    Path
  1.4       +4 -3      
jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/SendTag.java
  
  Index: SendTag.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/SendTag.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- SendTag.java      2001/05/21 18:20:50     1.3
  +++ SendTag.java      2001/06/27 19:57:03     1.4
  @@ -1,7 +1,7 @@
   /*
  - * $Header: 
/home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/SendTag.java,v 1.3 
2001/05/21 18:20:50 catlett Exp $
  - * $Revision: 1.3 $
  - * $Date: 2001/05/21 18:20:50 $
  + * $Header: 
/home/cvs/jakarta-taglibs/mailer/src/org/apache/taglibs/mailer/SendTag.java,v 1.4 
2001/06/27 19:57:03 catlett Exp $
  + * $Revision: 1.4 $
  + * $Date: 2001/06/27 19:57:03 $
    *
    * ====================================================================
    *
  @@ -481,6 +481,7 @@
            // since the JSP has already finished executing this exception will
            // do nothing visible, however the errors should be dealt with by
            // the SMTP host if it is configured correctly
  +         pc.getServletContext.log("The e-mail sent to " + 
message.getRecipients(Message.RecientType.TO) + " was not sent:  " + me.getMessage());
        }
       }
   }
  
  
  

Reply via email to