ActionScrip 2.0 (layer)
Código:
  
var envio_lv:LoadVars = new LoadVars();
var recibir_lv:LoadVars = new LoadVars();
function enviarForm() {
	
	envio_lv.nombre = nombre_txt.text;
	envio_lv.telefono = telefono_txt.text;
	envio_lv.email = email_txt.text;
	envio_lv.pais = pais_txt.text;
	envio_lv.comentarios = comentarios_txt.text;
	
}
recibir_lv.onLoad = function(exito) {
	if (exito) {
		nombre_txt.text = "";
		telefono_txt.text = "";
		email_txt.text = "";
		pais_txt.text = "";
		comentarios_txt.text = "";
		
		mensaje_txt.html = true;
		
		mensaje_txt.htmlText = this.mensaje;
	} else {
		
		mensaje_txt.htmlText = "<b>Error</b>";
	}
};
Código PHP:
   <?php
    $sendTo = '[email protected]';
    $subject = 'Envio de informacion - Contactenos www.paviobras.com.co';
    $nombre = $_POST['nombre'];
    $telefono = $_POST['telefono'];
    $pais = $_POST['pais'];
    $email = $_POST['email'];
    $comentarios = $_POST['comentarios'];
    
    $message = "
 
 
<strong>Nombre del Usuario:</strong> ".$nombre." </p>
<strong>Telefono del Usuario:</strong> ".$telefono." </p>
<strong>Pais del Usuario:</strong> ".$pais." </p>
<strong>email del Usuario:</strong> ".$email." </p>
<strong>Comentarios del Usuario:</strong> ".$comentarios." </p>";
 
$message = $message . " <br><br><br>Muchas Gracias por escogernos!!!<br></body></html>";
    
    $subject = "Ha recibido un nuevo mensaje de Contactenos - www.paviobras.com.co";
    $headers = "From: $email\r\nContent-type: text/html\r\n";
    $headers .= "Reply-To: " . $_POST['$email']; 
 
    mail($sendTo, $subject, $message, $headers);
 
    echo "mensaje= Su Mensaje ha sido enviado!";
?>    
 

