Textpattern PHP Cross Reference Content Management Systems

Summary: /textpattern/vendors/Textpattern/Mail/Encode.php - 152 lines - 4011 bytes - Source - Print

Description: Collection of email related encoders.

Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Encode:: (5 methods):
__construct()
addressList()
header()
entityObfuscateAddress()
escapeHeader()

Class: Encode


__construct()  line: 43
Constructor.

addressList($value line: 54
Encodes an address list to a valid email header value.

return: string
param: array $value The address list
header($string, $type line: 80
Encodes a string for use in an email header.

return: string
param: string $string The string
param: string $type   The type of header, either "text" or "phrase"
entityObfuscateAddress($address line: 118
Converts an email address into unicode entities.

<code>
echo Txp::get('\Textpattern\Mail\Encode')->entityObfuscateAddress('john.doe@example.com');
</code>

return: string Encoded email address
param: string $address The email address
escapeHeader($string line: 140
Removes new lines and NULL bytes from header lines, preventing
header injections.

return: string Escaped header value
param: string $string The string

title

Body