Project

General

Profile

« Previous | Next » 

Revision 885

Added by doc almost 16 years ago

changed mailer to not extract line break of alternative body text

View differences:

trunk/CHANGELOG
11 11
! = Update/Change
12 12

  
13 13
------------------------------------- 2.7.1 -------------------------------------
14
13-Dec-2008 Christian Sommer
15
!	changed mailer to not extract line break of alternative body text (thanks to freeSbee)
14 16
28-Oct-2008 Christian Sommer
15 17
!	updated output filter regex to exclude mail addresses contained in input fields
16 18
27-Nov-2008 Thomas Hornik
trunk/wb/framework/class.wb.php
312 312
		$fromaddress = preg_replace('/[\r\n]/', '', $fromaddress);
313 313
		$toaddress = preg_replace('/[\r\n]/', '', $toaddress);
314 314
		$subject = preg_replace('/[\r\n]/', '', $subject);
315
		$message_alt = $message;
315 316
		$message = preg_replace('/[\r\n]/', '<br \>', $message);
316 317
		
317 318
		// create PHPMailer object and define default settings
......
328 329
		$myMail->AddAddress($toaddress);                            // TO:
329 330
		$myMail->Subject = $subject;                                // SUBJECT
330 331
		$myMail->Body = $message;                                   // CONTENT (HTML)
331
		$myMail->AltBody = strip_tags($message);                    // CONTENT (TEXT)
332
		$myMail->AltBody = strip_tags($message_alt);				// CONTENT (TEXT)
332 333
		
333 334
		// check if there are any send mail errors, otherwise say successful
334 335
		if (!$myMail->Send()) {

Also available in: Unified diff