projects
/
e-DoKo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
be205de
)
BUGFIX: send emails in utf-8
author
Arun Persaud
<arun@nubati.net>
Sat, 19 Jan 2013 19:53:39 +0000
(11:53 -0800)
committer
Arun Persaud
<arun@nubati.net>
Sat, 19 Jan 2013 19:53:39 +0000
(11:53 -0800)
include/functions.php
patch
|
blob
|
history
diff --git
a/include/functions.php
b/include/functions.php
index a332347d38213a4c93c6756061d48e8ce6adbf6d..d9421f12a82ef5f99585f00f4ab905ff84a6d419 100644
(file)
--- a/
include/functions.php
+++ b/
include/functions.php
@@
-218,6
+218,10
@@
function sendmail($To,$Subject,$message)
if(isset($EMAIL_REPLY))
$header .= "From: e-DoKo daemon <$EMAIL_REPLY>\r\n";
if(isset($EMAIL_REPLY))
$header .= "From: e-DoKo daemon <$EMAIL_REPLY>\r\n";
+ $headers .= "Content-Type: text/plain; charset = \"UTF-8\";\r\n";
+ $headers .= "Content-Transfer-Encoding: 8bit\r\n";
+ $headers .= "\r\n";
+
if($debug)
{
/* display email on screen,
if($debug)
{
/* display email on screen,
@@
-228,15
+232,12
@@
function sendmail($To,$Subject,$message)
"<a href=\"$1\">$1</a>", $message);
echo "<br />To: $To<br />";
"<a href=\"$1\">$1</a>", $message);
echo "<br />To: $To<br />";
- if($header != "")
- echo $header."<br />";
+ echo $header."<br />";
echo "Subject: $Subject <br />$message<br />\n";
}
else
echo "Subject: $Subject <br />$message<br />\n";
}
else
- if($header != "")
- mail($To,$Subject,$message,$header);
- else
- mail($To,$Subject,$message);
+ mail($To,$Subject,$message,$header);
+
return;
}
return;
}