Return-Path: Mailing-List: contact cocoon-cvs-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-cvs@xml.apache.org Received: (qmail 32021 invoked by uid 1037); 31 Jan 2001 03:59:27 -0000 Date: 31 Jan 2001 03:59:27 -0000 Message-ID: <20010131035927.32020.qmail@apache.org> From: balld@apache.org To: xml-cocoon-cvs@apache.org Subject: cvs commit: xml-cocoon/src/org/apache/cocoon/processor/xsp/library/mail sendmail.xsl balld 01/01/30 19:59:27 Modified: src/org/apache/cocoon/processor/xsp/library/mail sendmail.xsl Log: fixed variable prefixes Revision Changes Path 1.4 +13 -13 xml-cocoon/src/org/apache/cocoon/processor/xsp/library/mail/sendmail.xsl Index: sendmail.xsl =================================================================== RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/processor/xsp/library/mail/sendmail.xsl,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- sendmail.xsl 2000/12/14 20:24:02 1.3 +++ sendmail.xsl 2001/01/31 03:59:26 1.4 @@ -77,10 +77,10 @@ java.util.Properties - static Properties _properties; + static Properties _sendmail_properties; static { - _properties = new Properties(); - _properties.put("mail.smtp.host","127.0.0.1"); + _sendmail_properties = new Properties(); + _sendmail_properties.put("mail.smtp.host","127.0.0.1"); } @@ -95,23 +95,23 @@ try { - Properties _properties = new Properties(this._properties); + Properties _sendmail_properties = new Properties(this._properties); if (!"null".equals(String.valueOf())) { - _properties.put("mail.smtp.host",String.valueOf()); + _sendmail_properties.put("mail.smtp.host",String.valueOf()); } Session _sendmail_session = Session.getDefaultInstance(_properties,null); - Message _message = new MimeMessage(_sendmail_session); - InternetAddress _from = new InternetAddress(String.valueOf()); - _message.setFrom(_from); - InternetAddress _to = new InternetAddress(String.valueOf()); - _message.setRecipient(Message.RecipientType.TO,_to); + Message _sendmail_message = new MimeMessage(_sendmail_session); + InternetAddress _sendmail_from = new InternetAddress(String.valueOf()); + _message.setFrom(_sendmail_from); + InternetAddress _sendmail_to = new InternetAddress(String.valueOf()); + _message.setRecipient(Message.RecipientType.TO,_sendmail_to); _message.setSentDate(new Date()); _message.setSubject(String.valueOf()); _message.setText(String.valueOf()); - Transport.send(_message); - } catch (AddressException e) { + Transport.send(_sendmail_message); + } catch (AddressException _sendmail_exception) { Your email address is invalid. - } catch (MessagingException e) { + } catch (MessagingException _sendmail_exception) { An error occured while sending email. }