[cmclasses] r1240 committed - Improved mail classes.

0 views
Skip to first unread message

cmcl...@googlecode.com

unread,
Jul 2, 2015, 1:32:18 PM7/2/15
to cmcl...@googlegroups.com
Revision: 1240
Author: christian.wuerker
Date: Thu Jul 2 17:31:58 2015 UTC
Log: Improved mail classes.
https://code.google.com/p/cmclasses/source/detail?r=1240

Modified:
/trunk/src/Net/Mail/Body.php
/trunk/src/Net/Mail.php

=======================================
--- /trunk/src/Net/Mail/Body.php Sat May 23 06:45:51 2015 UTC
+++ /trunk/src/Net/Mail/Body.php Thu Jul 2 17:31:58 2015 UTC
@@ -119,7 +119,7 @@
* @param integer $maxLineLength Maximum Length to force for each Line
in Content.
* @return string
*/
- public function wrapWords( $maxLineLength = 78 )
+ public function wrapWords( $maxLineLength = 76 )
{
$this->content = chunk_split( $this->content, $maxLineLength,
Net_Mail::$delimiter );
}
=======================================
--- /trunk/src/Net/Mail.php Sat May 23 06:45:51 2015 UTC
+++ /trunk/src/Net/Mail.php Thu Jul 2 17:31:58 2015 UTC
@@ -65,8 +65,10 @@
{
$this->headers = new Net_Mail_Header_Section();
$this->mimeBoundary = md5( microtime( TRUE ) );
- $this->headers->setFieldPair( 'MIME-Version', '1.0' );
+ $server = empty( $_SERVER['SERVER_NAME'] ) ? 'localhost' :
$_SERVER['SERVER_NAME'];
$type = 'multipart/mixed; boundary='.$this->mimeBoundary.'';
+ $this->headers->setFieldPair( 'MIME-Version', '1.0' );
+ $this->headers->setFieldPair( 'Message-ID', "<".sha1( microtime()
)."@".$server.">" );
$this->headers->setFieldPair( 'Content-Type', $type, TRUE );
}

Reply all
Reply to author
Forward
0 new messages