summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruckelman <uckelman@nomic.net>2010-04-13 19:34:29 +0000
committeruckelman <uckelman@nomic.net>2010-04-13 19:34:29 +0000
commita3c4cfe69d701f2f772aef0116f3f1458e50854e (patch)
tree11bb65f3cb16567f0487ede2b821a6852ce9345d
parent7fe662a30b494c3d7b185227c77421a260932774 (diff)
Added more code for testing.
git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6696 67b53d14-2c14-4ace-a08f-0dab2b34000c
-rw-r--r--src/F2M.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/F2M.php b/src/F2M.php
index 81238a7..e4cd479 100644
--- a/src/F2M.php
+++ b/src/F2M.php
@@ -24,10 +24,16 @@ function send_to_lists($user, $data, $post_data) {
$userName = $user->data['username'];
$userEmail = $user->data['user_email'];
-
- $subject = $post_data['post_subject'];
+
+ $from = utf8_quote($userName) . ' <' . $userEmail . '>';
+ $sender = 'forum@test.nomic.net';
+ $subject = utf8_quote($post_data['post_subject']);
$time = $phpbb->getPostTime($postId);
+ if ($time === false) {
+ throw new Exception('no post time: ' . $postId);
+ }
+
$date = date(DATE_RFC2822, $time);
$messageId = build_message_id($time, $postId, $_SERVER['SERVER_NAME']);
@@ -36,18 +42,16 @@ function send_to_lists($user, $data, $post_data) {
$body = $data['message'];
-/*
print '<p>';
var_dump($data);
var_dump($post_data);
- var_dump($messageId);
print '</p>';
-*/
/*
$bridge = new Bridge();
$to = $bridge->getLists($forumId);
+ if ($to == false) {
$headers = array(
'To' => implode(', ', $to),