http://php.flashwebhost.com/mini/email.php
Code:
<?php
if (isset($_POST['submit'])) {
$fromEmail = $POST['fromEmail'];
$body = $_POST['body'];
mail('[email protected]','Message from web site', $body, 'From: ' . $fromEmail . "\n\r");
echo 'Thank you for contacting us.';
}
else { echo
'<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Contact Us</title>
http://php.flashwebhost.com/mini/email.php
<form action="email.php" method="POST">
Email<br>
<input type="text" name="fromEmail"><br>
Message<br>
<textarea name="body" cols="40" rows="10"></textarea>
<br>
<button type="submit" name="submit" value="submit">Send Mail</button></form>
</body>
</html>
';}
Bookmarks