mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-09 10:16:36 +02:00
This should fix Bug #498451.. Keep it from including smtp.php more than once..
git-svn-id: file:///svn/phpbb/trunk@2007 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -195,7 +195,10 @@ class emailer
|
||||
}
|
||||
if($this->use_smtp)
|
||||
{
|
||||
include($phpbb_root_path . "includes/smtp.".$phpEx);
|
||||
if(!defined('SMTP_INCLUDED'))
|
||||
{
|
||||
include($phpbb_root_path . "includes/smtp.".$phpEx);
|
||||
}
|
||||
if(!smtpmail($this->address, $this->subject, $this->msg, $this->extra_headers))
|
||||
{
|
||||
message_die(GENERAL_ERROR, "Sending via SMTP failed", "", __LINE__, __FILE__);
|
||||
@@ -314,4 +317,4 @@ class emailer
|
||||
|
||||
} // class emailer
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user