So...I went about trying to test if the server is allowing me to use the mail function. I created a php file with the following code-
I changed the email address to my email address, uploaded the file to the server and got this response when I called the file from the browser-PHP Code:<?
mail("yourname@yourdomain","test","Ok, it works");
?>
Does this mean the server is not allowing me to use the mail function? What do I need them to do to allow me to do this?HTML Code:Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in E:\Websites\Lior\mailtest.php on line 8
Any help is greatly appreciated.
Jman




Reply With Quote