Código :
<? // Enter your contact email address here $adminaddress ="[email protected]"; // Enter the address of your website here include http://www. $siteaddress ="http://www.hovercraft.cl"; // Enter your company name or site name here $sitename = "hovercraft.cl"; /******************************************************* No need to change anything below ... *******************************************************/ // 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","Form.hovercraft.cl", "Una visita registrada en $sitename ha dejado el siguiente mensaje:\n Nombre: $name Email: $email Telefono: $phone Mensaje:\n $comment ____________ 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("$email","$sitename", "Hola $name:\n Tu información ha sido enviada. Gracias por la visita. $sitename $siteaddress","FROM:$adminaddress"); //Confirmation is sent back to the Flash form that the process is complete $sendresult = "Gracias por visitarnos <a href = \"$siteaddress\" target = \"_blank\"><u>$sitename</u></a>. You will receive a confirmation email shortly. "; $send_answer = "answer="; $send_answer .= rawurlencode($sendresult); echo "$send_answer"; endif; ?>
Espero sus comentarios please.....
