Skip to main content
Participant
September 23, 2008
Question

Dynamic Webpages

  • September 23, 2008
  • 1 reply
  • 268 views
I am trying to create a dynamic webpage,where the contact details of a customer are entered into a webform and sent to the buisness' email. To do this I purchased the 'Advanced Dreamweaver Dynamic Applications' book.

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.

Can anyone help?

Thanks
This topic has been closed for replies.

1 reply

Inspiring
September 23, 2008
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/