diff --git a/build.xml b/build.xml index 26df439cf..778533740 100644 --- a/build.xml +++ b/build.xml @@ -28,7 +28,7 @@ - + @@ -108,7 +108,7 @@ diff --git a/src/main/com/oreilly/servlet/MailMessage.java b/src/main/org/apache/tools/mail/MailMessage.java similarity index 93% rename from src/main/com/oreilly/servlet/MailMessage.java rename to src/main/org/apache/tools/mail/MailMessage.java index ecde91de4..601ab8762 100644 --- a/src/main/com/oreilly/servlet/MailMessage.java +++ b/src/main/org/apache/tools/mail/MailMessage.java @@ -1,14 +1,9 @@ -// Copyright (c) 2000 Jason Hunter and -// The Apache Software Foundation. All rights reserved. -// -// NOTE: -// This code is mirrored from http://Servlets.com -// Updates should be done in conjunction with Servlets.com -// and the larger com.oreilly.servlet project - /* * The Apache Software License, Version 1.1 * + * Copyright (c) 1999 The Apache Software Foundation. All rights + * reserved. + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: @@ -53,26 +48,27 @@ * */ -package com.oreilly.servlet; +/* + * The original version of this class was donated by Jason Hunter, + * who wrote the class as part of the com.oreilly.servlet + * package for his book "Java Servlet Programming" (O'Reilly). + * See http://www.servlets.com. + * + */ + +package org.apache.tools.mail; import java.io.*; import java.net.*; import java.util.*; /** - * A class to help send SMTP email. It can be used by any Java program, not - * just servlets. Servlets are likely to use this class to: - *
    - *
  • Send submitted form data to interested parties - *
  • Send an email page to an administrator in case of error - *
  • Send the client an order confirmation - *
- *

+ * A class to help send SMTP email. * This class is an improvement on the sun.net.smtp.SmtpClient class * found in the JDK. This version has extra functionality, and can be used * with JVMs that did not extend from the JDK. It's not as robust as * the JavaMail Standard Extension classes, but it's easier to use and - * easier to install, and has a more open license. + * easier to install, and has an Open Source license. *

* It can be used like this: *

@@ -117,12 +113,10 @@ import java.util.*;
  * 
    *
  • Figure out how to close the connection in case of error *
- * This class is part of a larger com.oreilly.servlet project from - * Servlets.com. * - * @author Jason Hunter, Copyright © 1999-2000 + * @author Jason Hunter * @version 1.1, 2000/03/19, added angle brackets to address, helps some servers - * @version 1.0, 1999/12/29 + * version 1.0, 1999/12/29 */ public class MailMessage {