Using PHP's mail() function and/or sendmail will sometimes cause anti-spam filters to filter out your mail. As such, it is best to use a SMTP authenticated conenection to the mail server for the domain. For PHP, you can use phpmailer classes. Most mainstream scripts will have buitl-in support for SMTP authentication . You would use the same settings as you would for a regular mail client, though perhaps using a dedicated mailbox for sending mail.
You can see an
example of sending mail via phpmailer at
http://u2-web.com/support/downloads/formmail/
Some of our web servers require sending via SMTP authentication. Please contact us if you would like to find out if you are on one of those servers.