-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 = info@planetghost.com

<?php
$to = 'xxx123@gmail.com';
$sub = "hai all";
$mess = "this is for check";
$frm  = "pacha60@gmail.com";
$head = "From:".$frm;
mail($to,$sub,$mess);
?>

kindly solve it

Vigneswaran S
  • 1,980
  • 1
  • 18
  • 32

1 Answers1

0

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

$to = 'xxx123@gmail.com';
Vigneswaran S
  • 1,980
  • 1
  • 18
  • 32
vanamerongen
  • 768
  • 2
  • 10
  • 26