my ISP's SMTP server does not work well with PHP mail, here is the error the SMTP tells me when i try to use my mail script:
PHP Warning: mail() [<a href='http://www.php.net/function.mail'>
function.mail</a>]: SMTP server response:
550 Sender address is missing a domain in (filename)
in my php.ini file i changed the SMTP server from my ISPs to my own mail server then turned off SMTP authentication for my server and suddenly the mailer script mailed perfectly. the only problem is that when i woke up the morning after, i saw that my SMTP server had 1200 pending emails to send, mostly from hanmail.net or mail.com. to stop the spam i need to turn on SMTP authentication but when i do that, the server tells me that it can't relay without authentication.
i need to fix 1 of the following:
1. fix the mailer script so it works with my ISP's SMTP server
2. somehow set PHP to authenticate with my SMTP server
here is the mail() function in the mailer script
mail($to,$HTTP_POST_VARS['title'],$body,"From: {$HTTP_POST_VARS['email']}");
$to is who the email is to
$http_post_vars['title'] is the title of the email
$body is the body of the email
$http_post_vars['email'] is the email address of the person who filled out the form