Re: mail submission... from flash

From: Date: Thu, 09 Jan 2003 21:39:01 +0000
Subject: Re: mail submission... from flash
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-131007@lists.php.net to get a copy of this message
GOT IT :) <?php $To = "test <test@test.com>"; $Subject = "www.test.com"; $N = $HTTP_POST_VARS['Name']; $M = $HTTP_POST_VARS['Mess']; $F = $HTTP_POST_VARS['MailFrom']; $H = $HTTP_SERVER_VARS['HTTP_HOST']; $A = $HTTP_SERVER_VARS['REMOTE_ADDR']; $UA = $HTTP_SERVER_VARS['HTTP_USER_AGENT']; $Date = getdate(time()); $Date = sprintf("%s %s %s %s:%s:%s", $Date["mday"],$Date["month"],$Date["year"],$Date["hours"],$Date["minutes"],$ Date["seconds"]); $From = "$N <$F>"; $Header = "From: $From\n"; $Header .= "Reply-To: $From\n\n"; $Body = "The following comment was submitted by: $N\n"; $Body .= "on $Date\n\n\n"; $Body .= "---------------------------------------------------------------\n\n"; $Body .= "$M\n\n"; $Body .= "---------------------------------------------------------------\n\n"; $Body .= "<REMOTE HOST> $H\n"; $Body .= "<REMOTE ADDRESS> $A\n"; $Body .= "<USER AGENT> $UA\n"; mail($To, $Subject, $Header, $Body); //echo "&result=success"; ?> "Travis" <trimel@rigsbydesign.com> wrote in message news:20030109180936.80933.qmail@pb1.pair.com... > well... > it returns nothing when using loadVars.sendAndLoad in flash and sends no > mail... > > while.... > this script on the same server called from the same flash file works > > > <?php > > $MailTo = "test@test.com"; > > mail($MailTo,$HTTP_POST_VARS["Name"], $HTTP_POST_VARS["MailFrom"], > $HTTP_POST_VARS["Message"]); > > ?> > > > > "Jason Wong" <php-general@gremlins.biz> wrote in message > news:200301100204.02225.php-general@gremlins.biz... > > On Friday 10 January 2003 00:57, travis wrote: > > > any one see why this wouldnt work? > > > > Why don't you tell us _how_ it doesn't work? > > > > [snip] > > > > > > -- > > Jason Wong -> Gremlins Associates -> www.gremlins.biz > > Open Source Software Systems Integrators > > * Web Design & Hosting * Internet & Intranet Applications Development * > > > > /* > > static buildup > > */ > > > >

« previous php.general (#131007) next »