close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Using a MySQLi recordset as recipient addresses

Thread began 4/26/2017 10:43 am by Steve_UK | Last modified 4/26/2017 5:03 pm by Steve_UK | 150 views | 5 replies

Steve_UK

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

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...