Re: More Then one email

From: Date: Thu, 11 Mar 2004 01:00:51 +0000
Subject: Re: More Then one email
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-23099@lists.php.net to get a copy of this message
Will wrote:
I have a problem. When I put 2 email addresses together it does not send the email. The coding is like this: $recipient = "email@email.com, $_POST[email]"; The send form looks like this: <? $subject = "$_POST[subject]"; $recipient = "webmaster@domain.com, $_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@example.com', $subject, $msg, $mailheader); mail($_POST['email'], $subject, $msg, $mailheader); -- paperCrane <Justin Patrin>

« previous php.windows (#23099) next »