BUGFIX: use email reply address for sending
authorArun Persaud <arun@nubati.net>
Sat, 28 Jul 2007 17:16:43 +0000 (10:16 -0700)
committerArun Persaud <arun@nubati.net>
Sat, 28 Jul 2007 17:16:43 +0000 (10:16 -0700)
the ini_set method didn't seem to work for some reason.
Setting the From in the header does work though

functions.php

index 6fe813734755166a63c1ac3a33918d751d50d794..c6a4a098e70824a56866fbb8cdc0788dec2e1c3e 100644 (file)
@@ -51,7 +51,10 @@ function config_check()
 
 function mymail($To,$Subject,$message,$header="")
 {  
-  global $debug;
+  global $debug,$EMAIL_REPLY;
+
+  if(isset($EMAIL_REPLY))
+    $header .= "From: e-DoKo daemon <$EMAIL_REPLY>\r\n";
 
   if($debug)
     {