[Mapbender-commits] r6912 - trunk/mapbender/http/classes

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Sep 7 07:40:32 EDT 2010


Author: verenadiewald
Date: 2010-09-07 11:40:32 +0000 (Tue, 07 Sep 2010)
New Revision: 6912

Modified:
   trunk/mapbender/http/classes/class_administration.php
Log:
allow definition of wordWrapLength for function sendMail

Modified: trunk/mapbender/http/classes/class_administration.php
===================================================================
--- trunk/mapbender/http/classes/class_administration.php	2010-09-07 08:45:49 UTC (rev 6911)
+++ trunk/mapbender/http/classes/class_administration.php	2010-09-07 11:40:32 UTC (rev 6912)
@@ -53,8 +53,9 @@
      * @param string the text to be set as "Subject"
      * @param string the text of the emails body
      * @param string a reference to an error string
+     * @param integer maximum line length
      */
-	function sendEmail($fromAddr, $fromName, $toAddr, $toName, $subject, $body, &$error_msg ){
+	function sendEmail($fromAddr, $fromName, $toAddr, $toName, $subject, $body, &$error_msg, $wordWrapLength = 50){
 
 		global $mailHost, $mailUsername, $mailPassword;
 		if($fromAddr == ''){
@@ -82,7 +83,7 @@
 			$mail->AddAddress($toAddr, $toName);
 			#$mail->AddReplyTo("info at ccgis.de", "Information");
 
-			$mail->WordWrap = 50;                                 // set word wrap to 50 characters
+			$mail->WordWrap = $wordWrapLength;                                 // set word wrap to 50 characters
 			#$mail->AddAttachment("/var/tmp/file.tar.gz");         // add attachments
 			#$mail->AddAttachment("/tmp/image.jpg", "new.jpg");    // optional name
 			$mail->IsHTML(false);                                  // set email format to HTML



More information about the Mapbender_commits mailing list