i have this code..
type address for form and it displays all names and email
address from sql database.
i type in message into box and send.
the connection is successful ..
the mail gets processed but no emails are sent.
i use this on a real web host.. not xammp etc.
i think the problem may be in this line but every change i tried
doesnt work.. ::
full code here:
i really appreciate the looksy
// change php.ini smtp line
// standard mail header
$headers = "From: Tap~~";
// get meessage to send
$message = $_GET['message'];
// loop through names / emails on index form
for ($x=0; $x<count($_GET); $x++)
// mail setup
$to = $_GET["mail_$x"];
$subject = "News From Tap~~";
$body = "Dear " . $_GET["name_$x"] . "
\n\n $message \n\n Josh \n\n Tap~~ ";
mail($to, $subject, $body, $headers );
echo "All Mail Has Been Processed";