i have a php form that recolect data form users and send some emails... i have no problems with that, but the part is drive me crazy its that as i show in the below example of my code only the last 2 mails are sent.. the first 2 not!!
i been tried no quites, single quotes, double quotes... no use the first 2 mails are not sent.. only the last 2.. whats wrong?? php mail function dont accept variable names in the '$to' parameter??... the echo lines at the end i wroted so i sure the variables have the vaue wich its true... pls.. some one help in this!! :-\ :'(
TNX
.blah
.blah
.
$meil2=$_POST['meil'];
$jobmeil2=$_POST['jobmeil'];
.blah
.
mail('$meil2',"VELEC 2012, Resgister succced!","{$datav}","From: info@velec.com");
mail('$jobmeil2',"VELEC 2012, Register succed!","{$datav}","From: info@velec.com");
mail("george.scott@stet.com","VELEC 2012, new customer has register !","$data_cust","From: info@velec.com");
mail("support@stet.com","VELEC 2012, new customer has register !","$data_cust","From: info@velec.com");
<?php
echo $meil2;
echo $jobmeil2;
?>