heya..
Det ser såda her ud:
<?
/******************************************************
**
** This script is easy to configure. Just change the variables below to
** suit your environment and PHP does the rest!
**
**
http://www.scratchdisk.co.uk**
*******************************************************/
// Enter your email address here
$adminaddress = "you@yourwebsite.com";
// Enter the address of your website here
$siteaddress ="
http://www.yourwebsite.com"; // Enter your company name or site name here
$sitename = "yourwebsite";
// Gets the date and time from your server
$date = date("m/d/Y H:i:s");
// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
IF ($action != "")
{
mail("$adminaddress","Enquiry from
www.yourwebsite.com",
"ENQUIRY FROM WEBSITE EMAIL FORM
Name: $inputName
Company: $inputCompany
Position: $inputPosition
Email: $inputEmail
Telephone: $inputTel
Requesting 24 hour callback? : $inputCallback
Message: $inputMessage
------------------------------
Logged Info :
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");
//This sends a confirmation to your visitor
mail("$vemail","Thank You for visiting $sitename","Your email has been recieved and will be processed shortly,"FROM:$adminaddress");
//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Done!";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
// echo "$send_answer";
}
?>