From 20b974bff2b9744c793726d970998f86c61df461 Mon Sep 17 00:00:00 2001 From: "community.cacert.org" Date: Fri, 12 Jun 2009 01:41:27 +0000 Subject: vote notifications git-svn-id: http://svn.cacert.cl/Software/Voting/vote@55 d4452222-2f33-11de-9270-010000000000 --- database.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'database.php') diff --git a/database.php b/database.php index 94f497a..f8b5b11 100644 --- a/database.php +++ b/database.php @@ -1,6 +1,7 @@ dbh = new PDO("sqlite:".dirname(__FILE__)."/database.sqlite"); @@ -98,6 +99,11 @@ BODY; mail($this->board, mb_encode_mimeheader($subject,"UTF-8", "B", "\n"),$body,$header."From: Voting System "); //mail("testsympa@lists.cacert.org",$subject,$body,"From: Voting System "); } + function vote_notify($subject,$body,$tag) + { + $header = "References: <".$tag.">\r\nIn-reply-to: <".$tag.">\r\n"; + mail($this->notices, mb_encode_mimeheader($subject,"UTF-8", "B", "\n"),$body,$header."From: Voting System "); + } function auth() { $stmt = $this->getStatement("get voter"); -- cgit v1.2.1