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 C:\Apache2.2\ht docs\mail.php on line 7
i changed in php.ini
SMTP=192.168.1. 50
smtp_port=25
;for win32 only
sendmail_from = email_removed@y our_domain.com
here 192.168.1.50 is the ip address of internal mail server
i wrote code like this
=============== ==
[CODE=php] <?php
$to = "email_removed@ your_domain.com ";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "mahesh.reddy@s hantasoft.com";
$headers = "From: $from";
mail($to,$subje ct,$message,$he aders);
echo "Mail Sent.";
?>[/CODE]
please help me
thanks & regards
Madhu
i changed in php.ini
SMTP=192.168.1. 50
smtp_port=25
;for win32 only
sendmail_from = email_removed@y our_domain.com
here 192.168.1.50 is the ip address of internal mail server
i wrote code like this
=============== ==
[CODE=php] <?php
$to = "email_removed@ your_domain.com ";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "mahesh.reddy@s hantasoft.com";
$headers = "From: $from";
mail($to,$subje ct,$message,$he aders);
echo "Mail Sent.";
?>[/CODE]
please help me
thanks & regards
Madhu
Comment