tags:

views:

74

answers:

0

my php.ini -

[mail function]
; For Win32 only.  
SMTP = smtp.pnpmkt.com  
smtp_port = 25

my sendmail.php-

$Header = "MIME-Version: 1.0\n";
$Header .= "Content-type: text/html; charset=iso-8859-1\n";  
$headers .= "From: [email protected]" . "\r\n";  

mail("[email protected]","Success","test body",$headers);
?>

ERROR while run-

Warning: mail() [function.mail]: Failed to connect to mailserver at "smtp.pnpmkt.com" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\303\sendmail.php on line 16