diff --git a/phpBB/groupcp.php b/phpBB/groupcp.php index 232d2a8aec..808edd24f1 100644 --- a/phpBB/groupcp.php +++ b/phpBB/groupcp.php @@ -69,6 +69,9 @@ if( isset($HTTP_POST_VARS['joingroup']) ) $email_headers = "From: " . $board_config['board_email'] . "\r\n"; + include($phpbb_root_path . 'includes/emailer.'.$phpEx); + $emailer = new emailer($board_config['smtp_delivery']); + $emailer->use_template("group_request"); $emailer->email_address($moderator[0]['user_email']); $emailer->set_subject($lang['Group_request']); diff --git a/phpBB/privmsg.php b/phpBB/privmsg.php index 8cbea8e91a..038df5496c 100644 --- a/phpBB/privmsg.php +++ b/phpBB/privmsg.php @@ -674,6 +674,9 @@ else if($mode == "post" || $mode == "reply" || $mode == "edit") if($to_userdata['user_notify_pm'] && !empty($to_userdata['user_email'])) { $email_headers = "From: " . $board_config['board_email'] . "\r\n"; + include($phpbb_root_path . 'includes/emailer.'.$phpEx); + $emailer = new emailer($board_config['smtp_delivery']); + $emailer->use_template("privmsg_notify"); $emailer->email_address($to_userdata['user_email']); $emailer->set_subject($lang['Notification_subject']);