close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Email to group of addresses from recordset(s)

Thread began 3/23/2012 10:49 am by alanblazek436860 | Last modified 3/26/2012 7:10 pm by alanblazek436860 | 1997 views | 7 replies

Jason ByrnesWebAssist

create a multiple select list that you can use to select the teams:

<select name="teams[]" size="5" multiple="multiple" id="teams">
<option value="Team1">Team1</option>
<option value="Team2">Team2</option>
<option value="Team3">Team3</option>
<option value="Team4">Team4</option>
<option value="Team5">Team5</option>
</select>



then create a recordset that will lookup the users by the selected, using the advanced recordset window, create the recordset as:

SELECT * FROM usersTable WHERE team IN(paramTeam)

create a new variable as:
name: paramTeam
Type: Text
Default Value: -1
Run Time Value: $_POST['teams']


this example recordset is using a table named "usersTable" and a column named "team", the example assumes the teams are stored in the team column using text values like "Team1", "Team1" etc.. You will need to make changes to use the correct table and column names and correct value.

Next, add the following code at line 1 to convert the multiple selections to a comma separated list:

php:
<?php

if($_SERVER["REQUEST_METHOD"] == "POST")     {
    foreach(
$_POST as $key => $val) {
        if(
is_array($_POST[$key])) $_POST[$key] = implode(", "$_POST[$key]);
    }
}
?>



then in universal email, click the to button to go to the advanced to settings page and set the to address to use a recordest loop

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...