$headers="From: satbir_4@hotmail.com" . "\r\n" . "CC: info@idea-ads.com"; $mailSent = mail("To: satbir@idea-ads.com", "Subject Here", "Message Here", $headers); if ($mailSent) { header("Location:../index.php"); } else { echo "Mail not sent"; }