Re: More Then one email

From: Date: Thu, 11 Mar 2004 08:17:15 +0000
Subject: Re: More Then one email
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-23102@lists.php.net to get a copy of this message
goodday~ how about this: $recipient = array('email@email.com', $_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@domain.com, $_POST[email"; should be: $recipient = "webmaster@domain.com, $_POST[email]"; Is it that?
-----Message d'origine----- De : Will [mailto:will.w@wawhosts.net] Envoy� : jeudi 11 mars 2004 01:33 � : PHP King; Php-Windows Objet : [PHP-WIN] 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@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~ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.windows (#23102) next »