Look at the php.ini file on the sebsite server to see how mail is configured.
Also, what OS is the server running? Mail is configured differently depending on the host OS. Also, what email server are you using? Exactly configuration also depends on it. (Setting up PHP at work to interact with the corporate Exchange server was not straight forward due to the security restrictions put in place by our IT department...)