mail submission... from flash

From: Date: Thu, 09 Jan 2003 16:57:26 +0000
Subject: mail submission... from flash
Groups: php.general 
Request: Send a blank email to php-general+get-130972@lists.php.net to get a copy of this message
any one see why this wouldnt work? <?php $to = "test name <test@test.com>"; $subject = "*www.test.com*"; $date = getdate(time()); $date = sprintf("%s %s %s %s:%s:%s", $date["mday"],$date["month"],$date["year"],$date["hours"],$date["minutes"],$date["seconds"]); $from = sprintf("s s", $HTTP_POST_VARS["Name"], <$HTTP_POST_VARS["MailFrom"]>); $header = "From:$from\n"; $header .= "Reply-To:$from\n"; $body = "The following comment was submitted by: \n"; $body .= "$name on $date\n\n"; $body .= "---------------------------------------------------------------\n\n"; $body .= sprintf("s s", $HTTP_POST_VARS["Body"], \n\n); $body .= "---------------------------------------------------------------\n\n"; $body .= "<REMOTE HOST> $REMOTE_HOST\n"; $body .= "<REMOTE ADDRESS> $REMOTE_ADDR\n"; $body .= "<USER AGENT> $HTTP_USER_AGENT\n"; mail($to,$subject, $header, $body) or die (echo "&result=failure";); echo "&result=success"; ?>

« previous php.general (#130972) next »