Zeile 25 | Zeile 25 |
---|
* @var string */ public $additional_parameters = '';
|
* @var string */ public $additional_parameters = '';
|
| /** * Path where the sendmail program can be found. * * @var string */ public $sendmail = '';
/** * Which "From:" mail address should be used in mail sent directly via SMTP. * * @var string */ public $sendmail_from = '';
|
/** * Sends the email.
| /** * Sends the email.
|
Zeile 36 | Zeile 50 |
---|
global $lang, $mybb;
// For some reason sendmail/qmail doesn't like \r\n
|
global $lang, $mybb;
// For some reason sendmail/qmail doesn't like \r\n
|
| /*
|
$this->sendmail = @ini_get('sendmail_path'); if($this->sendmail) {
| $this->sendmail = @ini_get('sendmail_path'); if($this->sendmail) {
|
Zeile 43 | Zeile 58 |
---|
$this->message = str_replace("\r\n", "\n", $this->message); $this->delimiter = "\n"; }
|
$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');
| // 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');
|
Zeile 51 | Zeile 67 |
---|
@ini_set("sendmail_from", $mybb->settings['adminemail']); }
|
@ini_set("sendmail_from", $mybb->settings['adminemail']); }
|
$dir = "/{$config['admin_dir']}/";
| $dir = "/{$mybb->config['admin_dir']}/";
|
$pos = strrpos($_SERVER['PHP_SELF'], $dir); if(defined('IN_ADMINCP') && $pos !== false) {
| $pos = strrpos($_SERVER['PHP_SELF'], $dir); if(defined('IN_ADMINCP') && $pos !== false) {
|