Big22211 wrote:
> When I test the page on my PC at home (useing it as the
test server) an error
> message appears and the email does not send. I have
checked the code and it is
> the same as the book's code.
I'm not familiar with that book, but testing PHP mail() from
a local
computer is generally a fruitless endeavour. A few years ago,
you could
normally just set up sendmail_from in php.ini and point the
mail at your
ISP. Sadly, the proliferation of spam means ISPs now demand
authentication before accepting email. The PHP mail()
function wasn't
designed for authentication, so it fails.
The only reliable way of testing mail() is by uploading the
script to
your remote server, and testing it there.
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/