Hi Just to clarify, (just got round to doing this part)
I have my update code triggered by save buttom:
<?php
if (isset($_POST["Save"])) {
mysql_select_db($database_dinkydb, $dinkydb);
$query_rsOrders = "UPDATE orders SET OrderProcessDate = NOW() WHERE OrderID IN (".implode(", ",$_POST["order-reference"]).")";
mysql_query($query_rsOrders, $dinkydb);
}
?>
<?php
if (isset($_POST["Save"])) {
mysql_select_db($database_dinkydb, $dinkydb);
$query_rsOrders = "UPDATE orders SET OrderProcess = '".$_POST["order-update"]."' WHERE OrderID IN (".implode(", ",$_POST["order-reference"]).")";
mysql_query($query_rsOrders, $dinkydb);
}
?>
straight after I have my Create Email Message server behaviour:
with the following:
TO: <?php echo ((isset($_POST["OrderBuyerEmail"]))?$_POST["OrderBuyerEmail"]:""); ?>
as well as
Email Body: checkbox is ticked for Manage email bosy from file (and I have a blank php file where I add the content that sends to the customer.
So now I have my following files:
admin/order-progress.php
webassist/email/waue_order-progress_1.php
webassist/email/templates/order-progress.php
now to send the email to ALL the emails that were selected on the checkbox
All I need to do is edit the webassist/email/templates/order-progress.php file
For example this file contains the current code:
<?php
global $RecipArray;
global $RecipIndex;
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td><p><?php echo($RecipArray[$RecipIndex][0]["[OrderBuyerFirstName]"]); ?></p>
<p><?php echo($RecipArray[$RecipIndex][0]["[OrderProcess]"]); ?></p>
</td>
</tr>
</tbody>
</table>
</body>
</html>
And thats the ONLY file that needs tweaking to send out to all the email addresses I have checked?