-
FAQ
- Forum Search
- Community
- Online Manual
- Support Helpers of the Month
- Function Database
mimespecialchars
Description
Prepare text strings for sending as email.
Syntax
array mimespecialchars (string $string[, bool $with_charset[, bool $hotmail_fix[, string $line_break]]])
Parameter $string
Expected type: String
Description: A string to convert
Parameter $with_charset
Expected type: Boolean
Description: Whether or not to send the character set information in the headers. Used when hotmail_fix is true. Default is true.
Parameter $hotmail_fix
Expected type: Boolean
Description: If true, converts higher-level ASCII characters to HTML entities to ensure messages display properly in Hotmail. Default is false.
Parameter $line_break
Expected type: String
Description: What to use for line breaks. Default is "\r\n" (carriage return and new line)
Return value
Expected type: Array
Description: Returns an array with the character set, the converted string and the transport method.
Notes
- In case there are higher ASCII characters in the given string, this function will attempt the transport method 'quoted-printable'.
- Otherwise the transport method '7bit' is used.
- With hotmail_fix set all higher ASCII characters are converted to HTML entities to assure proper display of the mail.
- Returns an array containing the character set, the converted string and the transport method.
Advertisement:- Help | Terms and Rules | Go Up ▲
- Copyright © 2022 Simple Machines. All Rights Reserved.
- Page created in 0.119 seconds with 13 queries.
- Forum Search