how about this:
$recipient = array('email@xxxxxxxxx', $_POST[email]); . . . and then mail(join(", ", $recipient),$subject,$msg,$mailheader);
it works well on my server~:)
Frederick Kuo 3/11
BrokenClock:
If your code is exactly what you wrote, this line: $recipient = "webmaster@xxxxxxxxxx, $_POST[email"; should be: $recipient = "webmaster@xxxxxxxxxx, $_POST[email]"; Is it that?
-----Message d'origine----- De : Will [mailto:will.w@xxxxxxxxxxxx] Envoyï : jeudi 11 mars 2004 01:33 ï : PHP King; Php-Windows Objet : More Then one email
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~
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php