quindi cosi
codice:
function mailtocliente($mail,$nome,$telefono,$mess) {
global $error = '';
$fromname = $nome;
$fromaddress = $mail;
$destinatario = mail@mail.com';
$mailsubject = "Richiesta Informazioni";
$headers = "Wrom: NYCGPKYLEJGDGVCJVTLBXFGGMEPYOQKEDOTWF
$headers.= "Return-Path: ".$fromaddress."\n";
$headers.= "Content-Type: text/html; charset=iso-8859-1";
$message = "Dati utente: $nome - Telefono: $telefono - E-mail: $mail - ha richiesto: $mess";
if(!mail($destinatario, $mailsubject, $message, $headers)) {
global $error = "Errore (mailtocliente) : Impossibile inviare l' email";
}
else {
global $error = "GRAZIE PER AVERCI CONTATTATO!";
}
return $error;
}
mailtocliente($mail,$nome,$telefono,$mess)
e poi stampo cosi giusto??
:master: