Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #6769

Re: Simple Html Php Form not working

From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: Simple Html Php Form not working
Date 2012-08-11 11:03 +0200
Message-ID <a8mlf5FuesU1@mid.individual.net> (permalink)
References <c0989039-2ae2-487d-9d39-1561fcf290df@googlegroups.com> <7e4d015c-4954-411a-9ba5-97eb77cca95c@googlegroups.com> <mufhf9-ict.ln1@luuk.invalid.lan>

Show all headers | View raw


On 11/08/12 09:58, Luuk wrote:
> On 10-08-2012 23:42, bpascal123 wrote:
>> Hi
>> I had quite a long day so my coding is weak and thus dealing with scripting languages I am not used to is indeed a challenge.
>>
>> Anyway, I spot the things you've mentioned and else. Now, I get to the page:
>> "Thank you for contacting us. We will be in touch with you very soon." So, it means the script is working.
>
> No, it means the last part of your code works,
>
>> However, I'm not receiving any messages...should I wait longer? Usually, hotmail is fast at delivering mail.
>
> you should check if hotmail received the message

Keep in mind that hotmail (micorosft) spam filter is a pita, and they 
will not tell you if the mail was detected as spam, for then it will 
never get to your mailbox, only mail that they think may or may not be 
spam will end up in the junk mail folder.

Usually mail without a proper mail header will be regarded as spam and 
never be delivered to the receiver.


> In your code is a line that reads:
> @mail($email_to, $email_subject, $email_message, $headers);
>
> The '@' makes sure that you dont see any error messages that could be
> the result of the funciton 'mail'.
>
> Thahts why you do NOT know if the message is send, or not...


mail() just returns true or false and even if you get a true result, you 
aren't guaranteed that mail will be sent, you will only know it had a 
successful connection to the SMTP/sendmail.

-- 

  //Aho

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Simple Html  Php Form not working bpascal123 <bpascal123@gmail.com> - 2012-08-10 12:49 -0700
  Re: Simple Html  Php Form not working Luuk <luuk@invalid.lan> - 2012-08-10 22:15 +0200
  Re: Simple Html  Php Form not working bpascal123 <bpascal123@gmail.com> - 2012-08-10 14:42 -0700
    Re: Simple Html  Php Form not working Luuk <luuk@invalid.lan> - 2012-08-11 09:58 +0200
      Re: Simple Html  Php Form not working "J.O. Aho" <user@example.net> - 2012-08-11 11:03 +0200
        Re: Simple Html  Php Form not working bpascal123 <bpascal123@gmail.com> - 2012-08-12 17:13 -0700
          Re: Simple Html  Php Form not working Michael Vilain <vilain@NOspamcop.net> - 2012-08-13 01:16 -0700
  Re: Simple Html  Php Form not working olivier.ligny@gmail.com - 2012-08-16 16:08 -0700

csiph-web