$to = "s@somedomain.com";$from = "j@anotherdomain.com";$cc = $from;$subject = "Sending emails from PHP";$body = <<< BODYHi Sam,This email is generated from a PHP script.- JoeBODY;mail($to, $subject, $body, "From: $from\r\nCc: $cc");?>