Using a MySQLi recordset as recipient addresses
Ray
I know that there is a post on your site from Jason stating that you were targeting the first quarter of 2015 for a release of a Databridge/MySQLi integration - is there any news on that please now that we are 2 years on?
Not withstanding that, I am trying to use a MySQLi recordset manually to send out an email which does not seem to fire.
Here's my attempt - can you advise whether or not this should do the job please?
I really don't want to go back to MySQL recordsets.
// Start build up recipients array
$CurIndex = sizeof($RecipArray);
$RecipArray[$CurIndex] = array();
while(!$rsRecipients->atEnd()) {
$RecipArray[$CurIndex ][] = "".($rsRecipients->getColumnVal("user_username")) ."";
$rsRecipients->moveNext();
}
$rsRecipients->moveFirst();
$RecipArray[$CurIndex ][] = "user1@domain.co.uk";
$RecipArray[$CurIndex ][] = "user2@domain.co.uk";
// End build up recipients array
The recordset returns the required records just fine.
The email DOES land with user1 and user2.
Thank you
Steve