<!--custom_php--><?php $email = $_POST['email']; $content = nl2br($_POST['content']); $name = $_POST['name']; $sender = $_POST['sender']; $subject = $_POST['subject']; $headers = 'From: $name '.'<'.$sender.'>\r\n'; mail($email, $subject, $content, $headers ); ?><!--/custom_php-->
<!--custom_php--><?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); ?><!--/custom_php-->