Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "J.O. Aho" Newsgroups: comp.lang.php Subject: Re: Simple Html Php Form not working Date: Sat, 11 Aug 2012 11:03:33 +0200 Lines: 40 Message-ID: References: <7e4d015c-4954-411a-9ba5-97eb77cca95c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net vpL01EE8hUSXi6Thin6DEAr+vqXuGVnGp2n8MCddcM+nSESMmzl7guxNY/Qr9Tlt1z Cancel-Lock: sha1:qJDxLfQe2HJJIBNFHuKANKBqmqA= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120807 Thunderbird/14.0 In-Reply-To: Xref: csiph.com comp.lang.php:6769 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