mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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:
parent
0c95dffd8a
commit
982d341892
1 changed files with 13 additions and 2 deletions
|
@ -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";
|
||||||
|
|
Loading…
Add table
Reference in a new issue