daimous
01-10-2005, 09:27 PM
can anybody pls help me...i have this code(below).
-------------------------------------------------------------
<?php
mail("jacker_692002@yahoo.com", "My Subject", "Line 1\nLine 2\nLine 3");
?>
---------------------------------------------------------------
and when i try to run it it give me an error message(below).
-------------------------------------------------------------------
Warning: 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 C:\Program Files\Apache Group\Apache2\htdocs\t\trymail.php on line 2
----------------------------------------------------------------
i already check my PHP configuration from phpinfo();
SMTP=localhost both local value and Master Value.
smtp_port=25 both local and master value.
can anybody pls. help me to solve this problem...tnx! 'n advanve...
-------------------------------------------------------------
<?php
mail("jacker_692002@yahoo.com", "My Subject", "Line 1\nLine 2\nLine 3");
?>
---------------------------------------------------------------
and when i try to run it it give me an error message(below).
-------------------------------------------------------------------
Warning: 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 C:\Program Files\Apache Group\Apache2\htdocs\t\trymail.php on line 2
----------------------------------------------------------------
i already check my PHP configuration from phpinfo();
SMTP=localhost both local value and Master Value.
smtp_port=25 both local and master value.
can anybody pls. help me to solve this problem...tnx! 'n advanve...