You are here: Re: help with email form « PHP Programming Language « IT news, forums, messages
Re: help with email form

Posted by Loki25 on 08/13/07 07:56

On Aug 12, 3:29 pm, alice <al...@fearofdolls.com> wrote:
> On Aug 10, 9:25 am, Loki25 <kgarnet...@gmail.com> wrote:
>
>
>
> > On Aug 9, 1:07 pm, alice <al...@fearofdolls.com> wrote:
>
> > > On Aug 7, 6:16 pm, Geoff Muldoon <geoff.muld...@trap.gmail.com> wrote:
>
> > > > In article <1186532720.113030.138...@e9g2000prf.googlegroups.com>, alice
> > > > says...> On Aug 6, 11:43 pm, Loki25 <kgarnet...@gmail.com> wrote:
> > > > > > Your html looks fine, your php looks fine and since you are using a
> > > > > > hosting service, we can assume your settings are fine. I also tested
> > > > > > the PHP script on my own server just to be sure nothing was over
> > > > > > looked. I replaced the $to address and it worked fine for me. Since
> > > > > > the exact code works fine on my server it leads me to believe that the
> > > > > > problem isn't in the code and it is instead on the server side. It
> > > > > > could be something as simple as their SMTP server being down for a
> > > > > > short while.
>
> > > > > I finally got the mail to send, but now whatever I enter in the
> > > > > message window does not get sent.
>
> > > > Are you using $message or $_POST['message']?
>
> > > > GM
>
> > > I'm not in front of it now, but I can see from my earlier post that
> > > I'm using
> > > $message.="message: ".$message."\n";
>
> > > So should this be
> > > $message.="message: "$_POST['message']"\n";
>
> > > or, I'm guessing here, if I don't want the word Message: to be in the
> > > email body it would be
> > > $message.=$_POST['message']"\n";
>
> > if you were to do it that way, it would be: $message.=
> > $_POST['message']."\n"; (you were missing the [.])- Hide quoted text -
>
> > - Show quoted text -
>
> Now I'm getting a blank page after clicking submit, and no mail is
> showing up. Here is the mail.php code, with the address x'd out.
> <?php
> $to="x@xxxxxx";
> $subject="web email";
> $email=$_POST["email"];
>
> $message="web email\n";
> $message=.$_POST['message']."\n";
>
> $head="From: x@xxxxx";
> mail($to,$subject,"".$message,$head);
> header("Location:thankyou.html");
> ?>

Everything looks fine to me, I don't see anything wrong with your
code. But what I'm trying to figure out is the purpose of the empty
quotes just before the message in the mail function call. ("".$message)

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация