Name: Anonymous 2010-02-11 17:19
Write a program that emails Sussman a poem or koan of worship and prints to the terminal the response he sends.
<?php
$to = 'gjs@mit.edu'; // recipient
$subject = 'Poetry'; // subject
$message = '
<html>
<head>
<title>' . $subject . '</title>
</head>
<body>
<p>I love the Sussman</p>
<p>I have read SICP</p>
<p>Cherry blossoms fall</p>
</body>
</html>'; // Body of the message (in HTML format)
$headers = 'MIME-Version: 1.0' . "\r\n"; // MIME version
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Content type and its encoding
$headers .= 'From: Your mail here <changethis@example.com>;' . "\r\n"; // Sender
mail($to, $subject, $message, $headers); // Send e-mail
?>