19,22 → 19,21 |
* limitations under the License. |
*/ |
|
// TODO: getHeaders() as single string , attachments , remove headers etc, headers as array in/out, do you also need addRawHeader()? |
// TODO: getHeaders() als single string , attachments , remove headers etc, headers als array in/out, Braucht man auch ein addRawHeader()? |
|
class SecureMailer { |
private $headers = ''; |
|
// TODO: This should rather be private, but it won't work |
const endl = "\n"; // GMX doesn't like CRLF! wtf?! (tested in Postfix in Linux) |
// TODO: sollte eher private sein, geht aber net |
const endl = "\n"; // GMX will kein CRLF! wtf?! (Unter Postfix in Linux) |
|
private function QB_SECURE_MAIL_PARAM($param_ = '', $level_ = 2) { |
// Prevents eMail header injections |
// Source: http://www.erich-kachel.de/?p=26 (modified) |
// Verhindert Mail-Header-Injections |
// Quelle: http://www.erich-kachel.de/?p=26 |
|
/* replace until done */ |
$filtered = null; |
while (is_null($filtered) || ($param_ != $filtered)) { |
if (!is_null($filtered)) { |
while (!isset($filtered) || ($param_ != $filtered)) { |
if (isset($filtered)) { |
$param_ = $filtered; |
} |
|
95,7 → 94,7 |
return $this->_sendMail($recipient, $subject, $message, ''); |
} |
|
// TODO: generate plain from html (strip tags), optional |
// TODO: plain aus html berechnen als optional? |
public function sendMailHTMLandPlainMultipart($to, $subject, $msg_html, $msg_plain) { |
$boundary = uniqid('np'); |
|