View Single Post
  #4  
Old 24th November 2011, 09:57
nashj99 nashj99 is offline
Junior Member
 
Join Date: Nov 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hey all,

the phpmail function is used in the php scripting for sending mail from the php code . the actuall script is
<?php
$to = "somebody@example.com";
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: webmaster@example.com" . "\r\n" .
"CC: somebodyelse@example.com";

mail($to,$subject,$txt,$headers);
?>

is this a complete code to send mail from the script ?
Reply With Quote