mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
Hopefully some fixes for the mass email bugs on win32 Systems... We'll Know soon :D
git-svn-id: file:///svn/phpbb/trunk@2011 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -91,8 +91,19 @@ if( isset($HTTP_POST_VARS['submit']) )
|
||||
if( !$error )
|
||||
{
|
||||
include($phpbb_root_path . 'includes/emailer.'.$phpEx);
|
||||
//
|
||||
// Let's do some checking to make sure that mass mail functions
|
||||
// are working in win32 versions of php.
|
||||
//
|
||||
if( preg_match('/[c-z]:\\\.*/i', getenv('PATH')) && !$board_config['smtp_delivery'])
|
||||
{
|
||||
// We are running on windows, force delivery to use
|
||||
// our smtp functions since php's are broken by default
|
||||
$board_config['smtp_delivery'] = 1;
|
||||
$board_config['smtp_host'] = get_cfg_var('SMTP');
|
||||
}
|
||||
$emailer = new emailer($board_config['smtp_delivery']);
|
||||
|
||||
|
||||
$email_headers = "From: " . $board_config['board_email'] . "\n";
|
||||
|
||||
$bcc_list = "";
|
||||
@@ -181,4 +192,4 @@ $template->pparse('body');
|
||||
|
||||
include('page_footer_admin.'.$phpEx);
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user