Re: Message isn't received in form mailer
| From: | David Jackson | Date: | Sat, 04 May 2002 20:46:30 +0000 |
| Subject: | Re: Message isn't received in form mailer | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-96085@lists.php.net to get a copy of this message | ||
Jason --
This ain't pretty (and probly not even correct) but it works:
David
-------------- Mail Call PHP ------------
<html>
<head><title>hello mail</title></head>
<body>
<pre>
<?php
$From = $_POST['from'];
$Two = $_POST['two'];
$Subject = $_POST['sub_ject'];
$Comments = $_POST['comments'];
echo "<b>$From</b>";print "\n";
echo $Two;print "\n";
echo $Subject;print"\n";
echo $Comments;print "\n";
?>
<?php mail($Two,$Subject,$Comments) ?>
</pre>
</body>
</html>
-------------------------------------------------
Jason Wong wrote:
>
> On Sunday 05 May 2002 00:39, Rodrigo wrote:
> > Hi guys, I'm trying to send the contents of a form thru the php script
> > under this message, but I'm not receiving the message itself, I just
> > receive the message in blank. Just with the subject and the from.
> > Does anybody know what the problem is?
> > Thanks for the help, Rodrigo
> >
> > <?php
> > $Destino = " <mailto:webmaster@h4ck3r.com>
> > webmaster@h4ck3r.com";
> > $Remetente = "$name <$email>";
> > $Assunto = "Form Domain.com";
> > $Mensagem = $coments;
> > mail($Destino,"$Assunto",$Mensagem,"From:$Remetente\n");
> >
> > header("Location:http://www.domain.com/success.htm");
> > ?>
>
> Presumably you've echo($Mensagem) and it does contain something?
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
>
> /*
> timesharing, n:
> An access method whereby one computer abuses many people.
> */