Lou28 wrote:
> Hi,
> I had to alter my perfectly working php script coz
easyspace decided to
> implement some spam controls.. they told me to insert a
-f argument which I
> did, but now my form doesn't work.
Either the instructions provided by easyspace were badly
written, or you
didn't implement them correctly. The antispam measures used
by an -f
argument are intended to ensure that the email comes from an
authorized
source, so you cannot use the value entered in the email
field of an
online form. It *must* be your email address. Moreover, it
must be the
fifth argument to mail(). You have used it as the third
argument.
Moreover, you have omitted the $subject argument to mail.
Change thisL
> if(mail($to, $body, '-f'.$sender))
to this:
if (mail($to, 'Message from online form', $body, null,
'-flouisa@cdteam.co.uk'))
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/