Function mimespecialchars
Prepare text strings for sending as email body or header. 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.
Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Post.php
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Post.php
string |
$string |
The string |
boolean |
$with_charset = true |
Whether we're specifying a charset ($custom_charset must be set here) |
boolean |
$hotmail_fix = false |
Whether to apply the hotmail fix (all higher ASCII characters are converted to HTML entities to assure proper display of the mail) |
string |
$line_break = "\r\n" |
The linebreak |
string |
$custom_charset = null |
If set, it uses this character set |
array
|
An array containing the character set, the converted string and the transport method. |