I am trying to debug the email send portion of phpgroupware, that seems to not work on my setup and work everywhere else.
This portion of code takes the to: field and strips out multiple addresses to send the message to the recipients one at a time. This hangs on my system and returns no internal error, just that it didn;t work. If I replace it with a real address and remove the for loop it works fine.
This is the same for one or multiple recipients.
I can't for the life of me figure out what us wrong.
code :
// now we've got to evaluate the $to's
$toaddr = explode(",",$to);
$numaddr = count($toaddr);
for ($i=0; $i<$numaddr; $i++) {
$src = $this->msg2socket($socket,'RCPT TO:<'.$toaddr[$i].">\r\n");
$rrc = $this->socket2msg($socket);
$this->to_res[$i][addr] = $toaddr[$i]; // for lateron validation
$this->to_res[$i]
= $this->err["code"];
$this->to_res[$i][msg] = $this->err["msg"];
$this->to_res[$i][desc] = $this->err["desc"];
}