Vergleich inc/mailhandlers/php.php - 1.4.0 - 1.4.5

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * Website: http://www.mybboard.net
* License: http://www.mybboard.net/about/license
*

 * $Id: php.php 3790 2008-04-23 22:50:33Z Tikitiki $

 * $Id: php.php 4304 2009-01-02 01:11:56Z chris $

 */

// Disallow direct access to this file for security reasons

 */

// Disallow direct access to this file for security reasons

Zeile 43Zeile 43
			$this->headers = str_replace("\r\n", "\n", $this->headers);
$this->message = str_replace("\r\n", "\n", $this->message);
$this->delimiter = "\n";

			$this->headers = str_replace("\r\n", "\n", $this->headers);
$this->message = str_replace("\r\n", "\n", $this->message);
$this->delimiter = "\n";

 
		}

// Some mail providers ignore email's with incorrect return-to path's so try and fix that here
$this->sendmail_from = @ini_get('sendmail_from');
if($this->sendmail_from != $mybb->settings['adminemail'])
{
@ini_set("sendmail_from", $mybb->settings['adminemail']);

		}


		}


		if(function_exists('mb_send_mail'))


		// If safe mode is on, don't send the additional parameters as we're not allowed to
if(ini_get('safe_mode') == 1 || strtolower(ini_get('safe_mode')) == 'on')

		{

		{

			if(function_exists('mb_language'))
{
if($this->charset == "UTF-8")
{
$language = 'uni';
}
else
{
$language = $lang->settings['htmllang'];
}
@mb_language($language);
}

$sent = @mb_send_mail($this->to, $this->subject, $this->message, trim($this->headers), $this->additional_parameters);
$function_used = 'mb_send_mail()';

			$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers));















		}
else
{
$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers), $this->additional_parameters);

		}
else
{
$sent = @mail($this->to, $this->subject, $this->message, trim($this->headers), $this->additional_parameters);

			$function_used = 'mail()';

 
		}

		}

 
		$function_used = 'mail()';


if(!$sent)
{


if(!$sent)
{