diff options
-rw-r--r-- | src/F2M.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/F2M.php b/src/F2M.php index 1846c7f..dc334ae 100644 --- a/src/F2M.php +++ b/src/F2M.php @@ -26,18 +26,21 @@ function send_to_lists($user, $data, $post_data) { $userEmail = $user->data['user_email']; $subject = $post_data['post_subject']; + $time = $phpbb->getPostTime($postId); $date = date(DATE_RFC2822, $time); - -# $messageId = mbuild_message_id($time, $postId, $forumHost); + $messageId = mbuild_message_id($time, $postId, $_SERVER['SERVER_NAME']); + + $forumURL = 'http://' . $_SERVER['SERVER_NAME'] . + substr($_SERVER['SCRIPT_NAME'], 0, -strlen('/posting.php')); $body = $data['message']; print '<p>'; var_dump($data); var_dump($post_data); - var_dump($date); - var_dump($_SERVER); + var_dump($messageId); + var_dump($forumURL); print '</p>'; /* |