Click to See Complete Forum and Search --> : mail problem...


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...

Maller
01-11-2005, 01:22 PM
Did you check that the smtp server is running, and that your ISP aint blocking port 25, alot of ISP does that.
Normally you can just use the one, your ISP provide you. something like "smtp.yourisp.com"