Hi,
Im having trouble emailing this to two address. It currently only sends to one.
I want the second one to be sent to $email
Here is my script:
?
$fname = $POST['fname'];
$lname = $POST['lname'];
$bname = $POST['bname'];
$abn = $POST['abn'];
$ph = $POST['ph'];
$email = $POST['email'];
$no = $POST['no'];
$st = $POST['st'];
$sub = $POST['sub'];
$state = $POST['state'];
$zip = $POST['zip'];
$user = $POST['user'];
$ToEmail = "onilinkz@yahoo.com.au";
##$ToName = "WebMaster";
$ToSubject = "Chezanzibar: Register";
$EmailBody = "
USERNAME: $user
PASSWORD: chez001
<General Information>
Name: $fname $lname
Business: $bname
ABN: $abn
Phone: $ph
Email: $email
<Postal Information>
House/Block No.: $no
Street: $st
City/Suburb: $sub
Sate: $state
Post Code: $zip
";
$EmailFooter="\nIf you feel that you recieved this eMail by accident please contact us at sales@chezanzibar.com.au";
$Message = $EmailBody.$EmailFooter;
mail($ToName." <".$ToEmail.">",$ToSubject, $Message, "From: ".$fname." <".$email.">");
Print "_root.register.content.display=>> COMPLETE - Thank you";
?>