alla fine ce l'ho fatta....... usando questi 2 script :
HTML

<div id="Layer21" style="position:absolute; width:200px; height:115px; z-index:6; left: 156px; top: 669px;">
<script language="JavaScript" type="text/javascript">
<!--
function CheckTAFForm(AForm)
{
if (AForm.YourName.value == "")
{
alert("Non hai inserito il tuo nome!");
AForm.YourName.focus();
return false;
}
if (AForm.YourMail.value == "")
{
alert("Non hai inserito il tuo indirizzo e-mail!");
AForm.YourMail.focus();
return false;
}
if (AForm.HisName.value == "")
{
alert("Non hai inserito il nome del tuo amico!");
AForm.HisName.focus();
return false;
}
if (AForm.HisMail.value == "")
{
alert("Non hai inserito l'indirizzo e-mail del tuo amico!");
AForm.HisMail.focus();
return false;
}
AForm.SuggestedURL.value = document.location;
return true;
}
//-->
</script>
<form action="invia.php" method="post"
onSubmit="return CheckTAFForm(this);" name="TAFForm">
<input type="hidden" name="SuggestedURL" value="">
<table align="center" border="0" cellpadding="2" cellspacing="1">
<tr>
<td colspan="3">
Segnala questa pagina ad un amico/a...
</td>
</tr>
<tr>
<td>Il tuo nome
<input type="text" name="YourName" value=""></td>
<td>Il tuo indirizzo email
<input type="text" name="YourMail" value=""></td>
</tr>
<tr>
<td><input type="text" name="HisName" value="">

Il nome del tuo amico/a</td>
<td><input type="text" name="HisMail" value="">

Il suo indirizzo email</td>
<td rowspan="2" align="center">
<input type="submit" name="TAFSend" value="Invia"></td>
</tr>
</table>
</form>


</div>


PHP

<?php
$referer = $_SERVER['HTTP_REFERER'];
$site = "videomatto.com";
$from = "info@" . $site;
$header = "From: " . $from . "\r\n";
$header .= "MIME-Version: 1.0\r\n";
$header .= "Content-Type: text/plain; charset=ISO-8859-1";
$to = $HisMail;
$subject = "Visita questa pagina su " . $site . "!";
$body .= "Ciao " . $HisName . "!\n\n";
$body .= "Visita subito la pagina\n" . $referer . "\n\n";
$body .= "Te lo consiglia " . $YourName . " (" . $YourMail . ").";

echo "<html><head><title>" . $site . "</title>";
echo "<meta http-equiv=\"REFRESH\" content=\"2; URL=" . $referer . "\">";
echo "</head><body>";

if (mail($to, $subject, $body, $header)) {
echo "

E-mail inviata con successo!</p>";
} else {
echo "

Si sono verificati dei problemi nell'invio dell'e-mail.</p>";
}

echo "</body></html>";
?>

e fin qua sono felice ma....................



ora mi sono impallato di brutto quì

http://www.videomatto.com/sendtous.htm

che è così composta :

HTM




<div id="Layer4" style="position:absolute; width:356px; height:115px; z-index:6; left: 149px; top: 695px;">
<script language="JavaScript" type="text/JavaScript">
<!--
function CheckTAFForm(AForm)
{
if (AForm.mittente.value == "")
{
alert("Non hai inserito la tua e mail!");
AForm.mittente.focus();
return false;
}
if (AForm.oggetto.value == "")
{
alert("Non hai inserito un titolo alvideo !");
AForm.oggetto.focus();
return false;
}

if (AForm.allegato.value == "")
{
alert("Non hai inserito nessun file in allegato");
AForm.allegato.focus();
return false;
}
}//-->

</script>
<form action="formmail.php" method="POST" enctype="multipart/form-data" onSubmit="return CheckTAFForm(this);" name="TAFForm">
<table width="367" border="0">
<tr>
<td width="79">la tua Mail:</td>
<td width="215"><input type="text" name="mittente" value="" /></td>
<td width="52"></td>
</tr>
<tr>
<td>Titolo</td>
<td><input type="text" name="oggetto" value="" /></td>
<td></td>
</tr>
<tr>
<td>Commenta il video</td>
<td><textarea cols="20" rows="4" name="messaggio"></textarea></td>
<td></td>
</tr>
<tr>
<td>Allega file:</td>
<td><input type="file" name="allegato" /></td>
<td><input type="submit" name="TAFSend" value="Invia">
<input type="hidden" name="destinatario" value="info@videomatto.com"></td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
</table>
</form></div>


PHP (pagina di invio)


<html>
<head>
<title>Documento senza titolo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php
$referer = $_SERVER['HTTP_REFERER'];
// Recupero il valore dei campi del form
$destinatario = $_POST['destinatario'];
$mittente = $_POST['mittente'];
$oggetto = $_POST['oggetto'];
$messaggio = $_POST['messaggio'];

// Valorizzo le variabili relative all'allegato
$allegato = $_FILES['allegato']['tmp_name'];
$allegato_type = $_FILES['allegato']['type'];
$allegato_name = $_FILES['allegato']['name'];

// Creo 2 variabili che riempirò più avanti...
$headers = "From: " . $mittente;
$msg = "";

// Verifico se il file è stato caricato correttamente via HTTP
// In caso affermativo proseguo nel lavoro...
if (is_uploaded_file($allegato))
{
// Apro e leggo il file allegato
$file = fopen($allegato,'rb');
$data = fread($file, filesize($allegato));
fclose($file);

// Adatto il file al formato MIME base64 usando base64_encode
$data = chunk_split(base64_encode($data));

// Genero il "separatore"
// Serve per dividere, appunto, le varie parti del messaggio.
// Nel nostro caso separerà la parte testuale dall'allegato
$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";

// Aggiungo le intestazioni necessarie per l'allegato
$headers .= "\nMIME-Version: 1.0\n";
$headers .= "Content-Type: multipart/mixed;\n";
$headers .= " boundary=\"{$mime_boundary}\"";

// Definisco il tipo di messaggio (MIME/multi-part)
$msg .= "This is a multi-part message in MIME format.\n\n";

// Metto il separatore
$msg .= "--{$mime_boundary}\n";

// Questa è la parte "testuale" del messaggio
$msg .= "Content-Type: text/plain; charset=\"iso-8859-1\"\n";
$msg .= "Content-Transfer-Encoding: 7bit\n\n";
$msg .= $messaggio . "\n\n";

// Metto il separatore
$msg .= "--{$mime_boundary}\n";

// Aggiungo l'allegato al messaggio
$msg .= "Content-Disposition: attachment;\n";
$msg .= " filename=\"{$allegato_name}\"\n";
$msg .= "Content-Transfer-Encoding: base64\n\n";
$msg .= $data . "\n\n";

// chiudo con il separatore
$msg .= "--{$mime_boundary}--\n";
}
else
{
$msg = $messaggio;
}
echo "<html><head><title>" . $site . "</title>";
echo "<meta http-equiv=\"REFRESH\" content=\"2; URL=" . $referer . "\">";
// Invio la mail
if (mail($destinatario, $oggetto, $msg, $headers))
{
echo "

Mail inviata con successo!</p>";
}else{
echo "

Errore!</p>";
}
echo "</body></html>";
?>


</body>
</html>



Tutto mi sembra a posto ma facendo dei test se invio da explorer ogni tanto mi arriva la mail
da mozzilla invece non arriva una mazza .....................

Dove sbaglio ? Fortuna che la fidanzata ha un esame iportante all'università perchè ci sto perdendo il sonno su queste cose ....
aiuto vi prego !!