diff options
Diffstat (limited to 'phpBB/includes/emailer.php')
-rwxr-xr-x | phpBB/includes/emailer.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/includes/emailer.php b/phpBB/includes/emailer.php index b93e61f03c..12f1ba803e 100755 --- a/phpBB/includes/emailer.php +++ b/phpBB/includes/emailer.php @@ -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 -?>
\ No newline at end of file +?> |