Changeset View
Changeset View
Standalone View
Standalone View
branches/5.3.x/core/kernel/utility/email_send.php
Show First 20 Lines • Show All 149 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
$this->smtpParams['use_auth'] = isset($this->smtpParams['username']) ? true : false; | $this->smtpParams['use_auth'] = isset($this->smtpParams['username']) ? true : false; | ||||
$this->smtpParams['localhost'] = 'localhost'; // The value to give when sending EHLO or HELO. | $this->smtpParams['localhost'] = 'localhost'; // The value to give when sending EHLO or HELO. | ||||
$this->sendMethod = $this->smtpParams['server'] && $this->smtpParams['port'] ? 'SMTP' : 'Mail'; | $this->sendMethod = $this->smtpParams['server'] && $this->smtpParams['port'] ? 'SMTP' : 'Mail'; | ||||
if ($this->sendMethod == 'SMTP') { | if ($this->sendMethod == 'SMTP') { | ||||
// create connection object if we will use SMTP | // create connection object if we will use SMTP | ||||
$this->smtpSocket = $this->Application->makeClass('Socket'); | $this->smtpSocket = $this->Application->makeClass('kSocket'); | ||||
} | } | ||||
$this->SetCharset(null, true); | $this->SetCharset(null, true); | ||||
} | } | ||||
/** | /** | ||||
* Returns new message id header by sender's email address | * Returns new message id header by sender's email address | ||||
* | * | ||||
▲ Show 20 Lines • Show All 1919 Lines • ▼ Show 20 Line(s) | |||||
* @param string $log_data | * @param string $log_data | ||||
* @return void | * @return void | ||||
* @access public | * @access public | ||||
*/ | */ | ||||
public function setLogData($log_data) | public function setLogData($log_data) | ||||
{ | { | ||||
$this->_logData = $log_data; | $this->_logData = $log_data; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |