Exponential Basic 2.4.0.1 Exponential Basic CMS — PHP Class Reference

ezpmail.php
Go to the documentation of this file.
1 <?php
14 class ezpMail extends ezcMail
15 {
22 public function generateHeaders()
23 {
24 // Workaround for encoded email addresses.
25 // When encoded, email addresses (at least the name param) have more characters
26 // By default, line length is set to 76 characters, after what a new line is created with $lineBreak.
27 // This operation is done during encoding via iconv (see ezcMailTools::composeEmailAddress()).
28 // Problem is that this operation is done a 2nd time in ezcMailPart::generateHeaders().
29 // Following code ensures that there is no double $lineBreak introduced
30 // by this process because it potentially breaks headers
31 $lineBreak = ezcMailTools::lineBreak();
32 $headers = str_replace( "$lineBreak$lineBreak", $lineBreak, parent::generateHeaders() );
33 return $headers;
34 }
35 }
36 ?>
ezpMail
Definition: ezpmail.php:15
ezpMail\generateHeaders
generateHeaders()
Definition: ezpmail.php:22
$headers
$headers
Definition: requestpagelist.php:61
Copyright © 1998 – 2026 7x. All rights reserved. Licensed under the GNU GPLv2+.