Trying to send a mail, mail arrives fine, no junk mail problem or whatever but
the part insertSearch is not being included in the mail
After a select query i am trying to pass on the results array like this.
Send and create the Message:
Code: Select all
#$vacSearch is een array directly from result
#$vacSearch = $dbc->getQuery("AND THE QUERY");
mail($too,$subject,_vacClass::_alert_reg($too,trim($nombre),$vacSearch),$headers);Code: Select all
#$mk variable is for something else. which also works.
function _alert_reg($mk,$nmbre,&$vacSearch) {
$message = '<html><body><LOTS OF HTML CODE WHICH ARRIVES FINE>';
$message.= _vacClass::_insertSearch(&$vacSearch);
$message .= '</body></html>';
return $message;
}Code: Select all
#_replace_esp ALSO WORKS.. NO ERRORS ON THAT PART:
function _insertSearch(&$vacSearch) {
foreach( $vacSearch as $row ) {
$vList = '
<tr>
<td style="width:166px;">
<a href="ht*p://***/">'._vacClass::_replace_esp( $row->fvac ).'<a/></td>
<td style="width:208px"; align="center">
<a href="ht*p://***/">'._vacClass::_replace_esp( $row->svac ).'</a></td>
</tr>
';
}
return $vList;
}