Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Homework

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.

Name: Anonymous 2010-02-11 18:35

<?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
?>

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List