CLEANUP: made emails a bit more personal
authorArun Persaud <arun@nubati.net>
Tue, 24 Feb 2009 06:19:00 +0000 (22:19 -0800)
committerArun Persaud <arun@nubati.net>
Tue, 24 Feb 2009 06:19:00 +0000 (22:19 -0800)
included the name of the person in the email

include/functions.php

index 7141ec75c86236389a668a33539d870ed0a6fdc8..0559895fbd1ef3684a0c618cf0ab1f83ed5ec1ec 100644 (file)
@@ -73,10 +73,11 @@ function mymail($uid,$subject,$message)
       $subject = "$EmailName".$subject;
 
       /* standard greeting */
-      $header  = "Hello ...\n\n";
+      $name    = DB_get_name('userid',$uid);
+      $header  = "Hello $name\n\n";
 
       /* and standard goodbye */
-      $footer  = "\n\nHave a nice day\n".
+      $footer  = "\nHave a nice day\n".
        "   your E-Doko service department\n\n".
        "-- \n".
        "You can change your mail delivery mode in the preference menu.\n".