Question now is: do you want to send just the entered data or do you want to send html to your user? Remember that some users (like myself) don't like html in their emails, so I'll just assume that you want to send text.
Next question is: do you have mail configured in your php.ini file? This is a different definition for Windows and Unix, so you'll have to know that before you start.
Having all that, you can simply create and send an email message using php's mail function (there are plenty of mailo classes around on the net, but I assume you want to use simple php for this).
The following code will show you how to accomplish this. For a more detailed explanation on the mail() function see the php documentation at
PHP mail reference and
mail() function
The following code shows a simple email script.
[PHP]
<?php
// email address of the adressee
$To = 'JohynDoe@hisnet.com';
// email address of the sender
$From = 'MyId@mynet.com';
// the subject of your message
$Subject = 'This is the subject text';
// the text of the message
$Message = 'Here comes the message text for the mail';
// send the mail
if (mail($To, $Subject, $Message, "From: $From")) {
echo 'Mail sent successfully';
// whatever else you want to do here
}
else {
echo 'Error when sending mail';
// whatever else you want to do now
}
?>
[/PHP]
Ronald :cool: