Something like
PHP Code:
<form method="post" action="<?php echo $_SERVER['php_self']; ?>">
<input type="text" name="email" />
<input type="submit" name="Submit" />
</form>
<?php
if (isset($_POST['Submit']) {
$email = $_POST['email'];
$subject = "Subject";
$body = "Body of email";
if (mail($email, $subject, $body)) {
//emailed
} else {
echo "Email failed";
}
}
?>
Post code for a more detailed answer or see http://php.net/manual/en/function.mail.php
Jangokoo, you should provide a coding sample or a link rather than just giving a user the name of a function.
Bookmarks