Re: mail($To problem
| From: | Alan McDonald | Date: | Thu, 04 Dec 2003 10:43:27 +0000 |
| Subject: | Re: mail($To problem | ||
| References: | 1 2 3 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-22317@lists.php.net to get a copy of this message | ||
thanks - but sorry no prize there - it makes no difference
Alan
"Seung Hwan Kang" <sk33@email.com> wrote in message
news:20031204103303.33586.qmail@pb1.pair.com...
> i acidently sent it....
>
>
> Seung Hwan Kang wrote:
>
> > I guess it's related to slashes... (addslashes)
> >
> > Here is eg.
> >
>
> // yourform.html
>
> <!-- your HTML form -->
> to
> subject
> content
> from
>
> // mailto.php
>
> <?
> $to = addslashes($_POST["to"]);
> $subject = addslashes($_POST["subject"]);
> $content = addslashes($_POST["content"]);
> $from = addslaehses($_POST["from"]);
>
> mail($to, $subject, $content, $from);
>
> ?>
>
> well, now it's correct!
>
> >
> > from Wollongong, NSW :)
> >
> > Alan McDonald wrote:
> >
> >> Can someone tell me why I might be getting this problem?
> >> I construct an HTML email and send it,... it's fine,... it goes
> >> But the last > character after the /html tag gets truncated.
> >> I always get
> >> </html
> >> stuck on the end of my message unless I add another one.
> >> If my last construct line is
> >> $content .= "</body></html>>";
> >> I do not see the </html on the end of the message because it has a
> >> complete
> >> tag in the message.
> >>
> >> thanks
> >> Alan