summaryrefslogtreecommitdiffstats
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php12
1 files changed, 9 insertions, 3 deletions
diff --git a/functions.php b/functions.php
index 75f1fed..f33dd1c 100644
--- a/functions.php
+++ b/functions.php
@@ -1,6 +1,6 @@
<?php
-function mymail($To,$Subject,$message)
+function mymail($To,$Subject,$message,$header="")
{
global $debug;
@@ -11,10 +11,16 @@ function mymail($To,$Subject,$message)
"<a href=\"\\0\">\\0</a>", $message);
//$message = ereg_replace("(http.*)[ <>]","<a href=\"\\1\">\\1 </a>",$message);
- echo "<br />To: $To<br />Subject: $Subject <br />$message<br />\n";
+ echo "<br />To: $To<br />";
+ if($header != "")
+ echo $header."<br />";
+ echo "Subject: $Subject <br />$message<br />\n";
}
else
- mail($To,$Subject,$message);
+ if($header != "")
+ mail($To,$Subject,$message,$header);
+ else
+ mail($To,$Subject,$message);
return;
}