-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
  • 2,039
  • 1
  • 20
  • 32

1 Answers1

0

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

$to = 'xxx123@gmail.com';
Vigneswaran S
  • 2,039
  • 1
  • 20
  • 32
vanamerongen
  • 837
  • 3
  • 11
  • 27