summaryrefslogtreecommitdiff
path: root/database.php
diff options
context:
space:
mode:
Diffstat (limited to 'database.php')
-rw-r--r--database.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/database.php b/database.php
index 9179ab6..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");
@@ -95,9 +96,14 @@ BODY;
} else {
$header = "References: <".$tag.">\r\nIn-reply-to: <".$tag.">\r\n";
}
- mail($this->board,$subject,$body,$header."From: Voting System <returns@cacert.org>");
+ 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");