Revision: 1741
          http://mrbs.svn.sourceforge.net/mrbs/?rev=1741&view=rev
Author:   cimorrison
Date:     2011-01-07 09:16:55 +0000 (Fri, 07 Jan 2011)

Log Message:
-----------
Changed EOL sequence in mail headers from the default CRLF to LF (necessary for 
use with the mail backend).

Modified Paths:
--------------
    mrbs/branches/ics_attachments/web/functions_mail.inc

Modified: mrbs/branches/ics_attachments/web/functions_mail.inc
===================================================================
--- mrbs/branches/ics_attachments/web/functions_mail.inc        2011-01-06 
13:59:18 UTC (rev 1740)
+++ mrbs/branches/ics_attachments/web/functions_mail.inc        2011-01-07 
09:16:55 UTC (rev 1741)
@@ -984,6 +984,8 @@
 
   global $mail_settings, $sendmail_settings, $smtp_settings, $enable_periods;
   
+  $eol = "\n";  // EOL sequence to use in mail headers.  Need "\n" for mail 
backend
+  
   // for cases where the mail server refuses
   // to send emails with cc or bcc set, put the cc
   // addresses on the to line
@@ -1060,6 +1062,7 @@
   // If we're not sending iCalendar information this will become the outer,
   // otherwise we'll then enclose it in an outer mime type.
   $mime_params = array();
+  $mime_params['eol'] = $eol;
   $mime_params['content_type'] = "multipart/alternative";
   $mime_inner = new Mail_mimePart('', $mime_params);
   
@@ -1093,12 +1096,14 @@
     // and then enclose the inner section in a multipart/mixed outer section.
     // First create the outer section
     $mime_params = array();
+    $mime_params['eol'] = $eol;
     $mime_params['content_type'] = "multipart/mixed";
     $mime = new Mail_mimePart('', $mime_params);
 
     // Now add the inner section as the first sub part
     $mime_inner = $mime_inner->encode();
     $mime_params = array();
+    $mime_params['eol'] = $eol;
     $mime_params['encoding'] = "7bit";
     $mime_params['content_type'] = $mime_inner['headers']['Content-Type'];
     $mime->addSubPart($mime_inner['body'], $mime_params);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Gaining the trust of online customers is vital for the success of any company
that requires sensitive data to be transmitted over the Web.   Learn how to 
best implement a security strategy that keeps consumers' information secure 
and instills the confidence they need to proceed with transactions.
http://p.sf.net/sfu/oracle-sfdevnl 
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to