$core_notify = DB_DataObject::factory($this->table);
$core_notify->domain_id = $core_domain->id;
$core_notify->whereAdd("
- sent >= NOW() - INTERVAL $seconds SECONDS
+ sent >= NOW() - INTERVAL $seconds SECOND
");
if($core_notify->count()){
$mailer->host = $server;
- $mailer->auth = true;
- $mailer->username = $settings['username'];;
- $mailer->password = $settings['password'];
+ $mailer->auth = isset($settings['auth']) ? $settings['auth'] : true;
+ $mailer->username = $settings['username'];
+ $mailer->password = $settings['password'];
+ if (isset($settings['port'])) {
+ $mailer->port = $settings['port'];
+ }
if (isset($settings['socket_options'])) {
$mailer->socket_options = $settings['socket_options'];
- $mailer->port = $settings['port'];
+
}
{
$this->debug_str .= strlen($this->debug_str) ? "\n" : '';
$this->debug_str .= $message;
+ //echo $message ."\n";
}
function errorHandler($msg, $success = false)