Forum Moderators: coopster
<?php
$message = (isset($_POST['message'])? $_POST['message'] : '');
$email = "breeders@example.com";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= "From:breeder@example.com\r\n";
$headers .= "Reply-To:" . $email . "\r\n";
$body = "
<html>
<head>
</head>
<body>
<p>Part of the body</p>
<p>" . $message . "</p>
</body>
</html>
";
if (isset($_POST['submit']))
{
mail('info@example.com', 'This Subject', $body, $headers);
}
?>
<form>
<input type='text' name='message' size='20' value='' />
<input type='submit' value='test' />
</form>
[edited by: jatar_k at 1:06 am (utc) on Aug. 3, 2007]
[edit reason] no urls thanks [/edit]