From 608c174245ed8825366e40254e93bd57f777356d Mon Sep 17 00:00:00 2001 From: rub Date: Fri, 12 Oct 2007 22:14:23 +0000 Subject: Replace htmlentities by htmlspecialchars on NBM in order to send a correct UTF8 mail. Quote mail charset + add debug mail informations Fix "check user with same mail" where null email was not discarded git-svn-id: http://piwigo.org/svn/trunk@2136 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_mail.inc.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/functions_mail.inc.php') diff --git a/include/functions_mail.inc.php b/include/functions_mail.inc.php index 9d69f474e..b4ad2c4e3 100644 --- a/include/functions_mail.inc.php +++ b/include/functions_mail.inc.php @@ -704,6 +704,9 @@ function pwg_mail($to, $args = array()) $filename .= '.html'; } $file = fopen($filename, 'w+'); + fwrite($file, $to); + fwrite($file, $cvt_subject); + fwrite($file, $headers); fwrite($file, $content); fclose($file); return true; -- cgit v1.2.3