Not all webhosts have PHP sendmail enabled.
Contact your webhost and find out how they handle contact form emails.
Ask them if they use PHP (or maybe they use ASP), or they might have
a special form method they want you to use.

usik

08-10-2007, 12:52 PM

does the web server have an smtp server running on it? if it doesn't you will need to set one up or get a hosted one, if you do that you will need to edit your php.ini

nickyfraggle

08-10-2007, 01:04 PM

Hello,

I had enormous problems using the php mail() function. No-one could tell me what was wrong with my code, it worked fine to my email address, but ,most other e-mail addresses simply blocked it.

I never got my mail() function to deliver to hotmail addresses or aol addresses.

In the end, I sat down and re-wrote it in CGI and it got received first time by all email addresses.

I'm not saying give up...who knows...you might have more luck than me...but I just thought I should mention that I was told that many mail servers reject emails sent from php scripts. I think that's why mine didn't work.

Nicky

mlseim

08-10-2007, 04:10 PM

Nicky,

I know what you're talking about, and it ultimately ends up being a
server issue. I would think in most cases, an email to the webhost would
prompt them to do something. I wonder if they sometimes create a
new webhost account and don't have some things set-up correctly in
the configuration.

I had this problem with www.cleverdot.com I emailed them and a few days
later, my problems went away. They never did email back with an answer
to what they did, but they did something. I'm back to using PHP for
sending forms without any problems.

I wish I could afford my own dedicated server, my own webhosting, and
my own dedicated connection ... I'm sick of relying on other people for
webhosting, and dealing with configuration issues.