Author: Frederik Holljen
Date: 2006-01-20 14:28:03 +0100 (Fri, 20 Jan 2006)
New Revision: 1992

Log:
- Fix wrong exception usage in TransportSmtp
- Fix: 7512: New bug: Mail problems server looses connection due line feed. The 
bug was caused by a hardcoded \n.. DOH.

Modified:
   packages/Mail/trunk/src/parts/multipart.php
   packages/Mail/trunk/src/transports/transport_smtp.php
   packages/Mail/trunk/tests/composer_test.php

Modified: packages/Mail/trunk/src/parts/multipart.php
===================================================================
--- packages/Mail/trunk/src/parts/multipart.php 2006-01-20 12:55:51 UTC (rev 
1991)
+++ packages/Mail/trunk/src/parts/multipart.php 2006-01-20 13:28:03 UTC (rev 
1992)
@@ -24,7 +24,7 @@
  */
 abstract class ezcMailMultipart extends ezcMailPart
 {
-    private static $noMimeMessage = "This message is in MIME format. Since 
your mail reader does not understand\nthis format, some or all of this message 
may not be legible.";
+    private static $noMimeMessage = "This message is in MIME format. Since 
your mail reader does not understand\r\nthis format, some or all of this 
message may not be legible.";
 
     /**
      * An array holding the parts of this multipart.

Modified: packages/Mail/trunk/src/transports/transport_smtp.php
===================================================================
--- packages/Mail/trunk/src/transports/transport_smtp.php       2006-01-20 
12:55:51 UTC (rev 1991)
+++ packages/Mail/trunk/src/transports/transport_smtp.php       2006-01-20 
13:28:03 UTC (rev 1992)
@@ -257,8 +257,7 @@
 
             if ( $this->getReplyCode( $error ) !== '250' )
             {
-                throw new ezcMailTransportSmtpException( "Mail was not 
successfully sent. Error: $error",
-                                                         
ezcMailTransportSmtpException::CONNECTION_FAILED );
+                throw new ezcMailTransportSmtpException( "Error: {$error}" );
             }
         }
         catch ( ezcMailTransportSmtpException $e )

Modified: packages/Mail/trunk/tests/composer_test.php
===================================================================
--- packages/Mail/trunk/tests/composer_test.php 2006-01-20 12:55:51 UTC (rev 
1991)
+++ packages/Mail/trunk/tests/composer_test.php 2006-01-20 13:28:03 UTC (rev 
1992)
@@ -215,6 +215,7 @@
 
     /**
      * Tests a complete mail with html images and files
+     * http://www.apps.ietf.org/msglint.html - validator
      */
     public function testMailHtmlWithImagesAndFiles()
     {
@@ -233,7 +234,6 @@
 //        echo "\n---------------\n";
         // let's try to send the thing
 //        $transport = new ezcMailTransportSmtp( "smtp.ez.no" );
-//        $transport->send( $this->mail );
     }
 
     public static function suite()

-- 
svn-components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/svn-components

Reply via email to