summaryrefslogtreecommitdiff
path: root/database.php
diff options
context:
space:
mode:
authorcommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-06-12 01:41:27 +0000
committercommunity.cacert.org <community.cacert.org@d4452222-2f33-11de-9270-010000000000>2009-06-12 01:41:27 +0000
commit20b974bff2b9744c793726d970998f86c61df461 (patch)
tree1980d512d41d4d53acda3e8f8bae09dc808f78ba /database.php
parent553a4dfafaeda59abb72a792c65d97229b827cf6 (diff)
downloadcacert-boardvoting-20b974bff2b9744c793726d970998f86c61df461.tar.gz
cacert-boardvoting-20b974bff2b9744c793726d970998f86c61df461.tar.xz
cacert-boardvoting-20b974bff2b9744c793726d970998f86c61df461.zip
vote notifications
git-svn-id: http://svn.cacert.cl/Software/Voting/vote@55 d4452222-2f33-11de-9270-010000000000
Diffstat (limited to 'database.php')
-rw-r--r--database.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/database.php b/database.php
index 94f497a..f8b5b11 100644
--- a/database.php
+++ b/database.php
@@ -1,6 +1,7 @@
<?php
class DB {
var $board = "cacert-board@lists.cacert.org";
+ var $notices = "testsympa@lists.cacert.org";
function __construct() {
$this->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 <returns@cacert.org>");
//mail("testsympa@lists.cacert.org",$subject,$body,"From: Voting System <returns@cacert.org>");
}
+ 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 <returns@cacert.org>");
+ }
function auth()
{
$stmt = $this->getStatement("get voter");