I have a problem. When I put 2 email addresses together it does not send the email. The coding is like this:
$recipient = "email@xxxxxxxxx, $_POST[email]";
The send form looks like this: <? $subject = "$_POST[subject]";
$recipient = "webmaster@xxxxxxxxxx, $_POST[email";
$mailheader .= "From: $_POST[email]\n"; $mailheader .= "To: $_POST[email]\n"; $msg .= "A message has been sent from the domain.com\n\n"; $msg .= "Senders Name: $_POST[name]\n"; $msg .= "Senders Email: $_POST[email]\n\n"; $msg .= "Message: \r$_POST[message]\n";
mail($recipient,$subject,$msg,$mailheader); ?>
Everything works, the subject message etc. But when it is sent I do not get any emails at all!!
Please help. :)
~WILL~
Use two mail() calls instead.
mail('email@xxxxxxxxxxx', $subject, $msg, $mailheader); mail($_POST['email'], $subject, $msg, $mailheader);
-- paperCrane <Justin Patrin>
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php