-1

even i changed the php.in as [mail function] ; For Win32 only. SMTP = smtp.planetghost.com smtp_port = 25 ; For Win32 only. sendmail_from = [email protected]

<?php
$to = '[email protected]';
$sub = "hai all";
$mess = "this is for check";
$frm  = "[email protected]";
$head = "From:".$frm;
mail($to,$sub,$mess);
?>

kindly solve it

Vigneswaran S
  • 2,039
  • 1
  • 20
  • 32

1 Answers1

0

Your $to isn't a string. Change to:

$to = '[email protected]';
Vigneswaran S
  • 2,039
  • 1
  • 20
  • 32
vanamerongen
  • 837
  • 3
  • 11
  • 27