From a3c4cfe69d701f2f772aef0116f3f1458e50854e Mon Sep 17 00:00:00 2001 From: uckelman Date: Tue, 13 Apr 2010 19:34:29 +0000 Subject: Added more code for testing. git-svn-id: https://vassalengine.svn.sourceforge.net/svnroot/vassalengine/site-src/trunk@6696 67b53d14-2c14-4ace-a08f-0dab2b34000c --- src/F2M.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/F2M.php') 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 '

'; var_dump($data); var_dump($post_data); - var_dump($messageId); print '

'; -*/ /* $bridge = new Bridge(); $to = $bridge->getLists($forumId); + if ($to == false) { $headers = array( 'To' => implode(', ', $to), -- cgit v1.2.3