It's working now. I removed all of the email code and the include pages and then did the Create Email Message again.
Not sure what i did the first time.
Another problem - I set the email to send to two addresses but only sends to the first listed? // build up recipients array
$CurIndex = sizeof($RecipArray);
$RecipArray[$CurIndex] = array();
$RecipArray[$CurIndex ][] = "xxxxxxxxx@mpmga.org";
$RecipArray[$CurIndex ][] = "xxxxxxxx@cox.net";
$TotalEmails += sizeof($RecipArray[$CurIndex]);
$RealWait = ($WaitTime<0.25)?0.25:($WaitTime+0.1);
$TimeTracker = Array();
$TotalBursts = floor($TotalEmails/$BurstSize);
$AfterBursts = $TotalEmails % $BurstSize;
$TimeRemaining = ($TotalBursts * $BurstTime) + ($AfterBursts*$RealWait);
if ($TimeRemaining < ($TotalEmails*$RealWait) ) {
$TimeRemaining = $TotalEmails*$RealWait;
}
Don't know if this has anything to do with it, but I have an array in one text field on the form so this code i added to the page which also added it to the index_WAUE_HTML_WA_Universal_Email_1.php
the code added is
<?php
if($_SERVER["REQUEST_METHOD"] == "POST") {
foreach($_POST as $key => $val) {
if(is_array($_POST[$key])) $_POST[$key] = implode(", ", $_POST[$key]);
}
}
?>