summaryrefslogtreecommitdiff
path: root/src/forum_post_send.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/forum_post_send.php')
-rw-r--r--src/forum_post_send.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/forum_post_send.php b/src/forum_post_send.php
index c2b23bd..723ed66 100644
--- a/src/forum_post_send.php
+++ b/src/forum_post_send.php
@@ -44,6 +44,8 @@ function send_post_to_lists($config, $user, $mode, $data, $post_data) {
print '</p>';
*/
+ require_once('Mail.php');
+
require_once(__DIR__ . '/BridgeConf.php');
require_once(__DIR__ . '/BridgeImpl.php');
require_once(__DIR__ . '/PhpBB3Conf.php');
@@ -55,7 +57,9 @@ function send_post_to_lists($config, $user, $mode, $data, $post_data) {
$phpbb = new PhpBB3Impl();
- $conduit = new PhpBB3ToMailman($bridge, $phpbb, $logger);
+ $mailer = Mail::factory('sendmail');
+
+ $conduit = new PhpBB3ToMailman($bridge, $phpbb, $mailer, $logger);
$conduit->process($config, $user, $mode, $data, $post_data);
}