<head></head>
<?php
    $action= $_POST['action'];
	if ( $action=='' ) {
?>
   <body >
   Send email to Jeremy:
   <form method='POST' action='email.php'>
       <textarea name='body' rows="4" cols="40">
	      Type in your message here
	   </textarea><br/>
	   <input type="submit"/>
	   <input type="hidden" name='action' value="sendEmail">
   </form>
   
   </body>
<?
   } else {
       $addr= "jbf@cottagesystems.com";
	   $subject= "automatic message from php";
	   mail( $addr, $subject, $_POST['body'], "" );
?>
   <body>Message sent!</body>
   <?
   }
?>
