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:
the_systech 2002-01-29 16:01:04 +00:00
parent 0c95dffd8a
commit 982d341892

View file

@ -91,6 +91,17 @@ if( isset($HTTP_POST_VARS['submit']) )
if( !$error ) if( !$error )
{ {
include($phpbb_root_path . 'includes/emailer.'.$phpEx); 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']); $emailer = new emailer($board_config['smtp_delivery']);
$email_headers = "From: " . $board_config['board_email'] . "\n"; $email_headers = "From: " . $board_config['board_email'] . "\n";