Thanks Ray - I pretty much have this all working now - there were a couple of rights issues to sort out with the hosting company.
I just have one last thing not working, which is displaying values from the recordset in the email, e.g.
$MailBody = $MailBody . "Dear";
$MailBody = $MailBody . $row_WADAlodges['Firstname'];
etc
Would that be because of what we looked at with CURL, so they're not being passed because of that extra hop?
I tried to do something with a session for the name by adding:
<?php
@session_start();
if($row_WADAlodges['Firstname'] != "") {
$_SESSION["LodgeFirstname"] = "".$row_WADAlodges['LodgeFirstname']."" ;
}
?>
to the product_results page after the query, and changing the lines above to:
$MailBody = $MailBody . "Dear";
$MailBody = $MailBody . $_SESSION['LodgeFirstname'];
But haven't been able to resolve it.