Problem Sending Mail!
Posted: Fri Nov 07, 2003 10:41 am
Hi,
I'm trying to use the mail() function but I'm have problems. I very new to PHP. Below is my PHP code and the error I get when I run it. Do I need to get SMTP port number from somewhere? please help
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()
I'm trying to use the mail() function but I'm have problems. I very new to PHP. Below is my PHP code and the error I get when I run it. Do I need to get SMTP port number from somewhere? please help
Code: Select all
<?php
mail("nouman@rogers.com", "My Subject", "Line 1\nLine 2\nLine 3");
?>