$ff = HTML_FlexyFramework::get();
-
- $dom = array_pop(explode('@', $p->email));
+ $explode_email = explode('@', $p->email);
+ $dom = array_pop($explode_email);
$mxs = $this->mxs($dom);
$ww = clone($w);
// handle no host availalbe forever...
if (strtotime($w->act_start) < strtotime('NOW - 3 DAYS')) {
$ev = $this->addEvent('NOTIFY', $w, "RETRY TIME EXCEEDED - ". $p->email);
- $w->sent = $w->sent == '0000-00-00 00:00:00' ? $w->sqlValue('NOW()') :$w->sent; // do not update if sent.....
+ $w->sent = (!$w->sent || $w->sent == '0000-00-00 00:00:00') ? $w->sqlValue('NOW()') : $w->sent; // do not update if sent.....
$w->msgid = '';
$w->event_id = $ev->id;
$w->domain_id = $core_domain->id;
return $object->$m($rcpt, $last_sent_date, $notify, $force);
}
- if (!method_exists($object, 'toEmail')) {
+ if (method_exists($object, 'toMailerData')) {
+ return $object->toMailerData(array(
+ 'rcpts'=>$rcpt,
+ 'person'=>$rcpt, // added as mediaoutreach used this?
+ )); //this is core_email - i think it's only used for testing...
//var_Dump($object);
//exit;
}