Ciao, buongiorno e grazie per la risposta. Il server provider mi ha detto che l'MTA non è attivabile per ragioni di sicurezza.
Devo quindi ovviare tramite SMTP mi han detto.
Vedendo online ho trovato del codice che utilizza PHPMailer ma anche settandola secondo i parametri gmail non esce.

Codice PHP:
$name       = @trim(stripslashes($_POST['name'])); $from       = @trim(stripslashes($_POST['email'])); $subject    = @trim(stripslashes($_POST['subject'])); $message    = @trim(stripslashes($_POST['message'])); $to           'miamail@gmail.com';//replace with your email
$mail             = new PHPMailer();
$mail->IsSMTP(); // telling the class to use SMTP$mail->Host       = "smtp.gmail.com"; // SMTP server$mail->SMTPDebug  = 2;                     // enables SMTP debug information (for testing)                                           // 1 = errors and messages                                           // 2 = messages only$mail->SMTPAuth   = true;                  // enable SMTP authentication$mail->SMTPSecure = "tls";                 $mail->Host       = "smtp.gmail.com";      // SMTP server$mail->Port       = 587;                   // SMTP port$mail->Username   = "miamail@gmail.com";  // username$mail->Password   = "miapass";            // password
$mail->SetFrom('xxx@gmail.com''Test');
$mail->Subject    "I hope this works!";
$mail->MsgHTML('Blah');
$address "test@test.com";$mail->AddAddress($address"Test");
if(!
$mail->Send()) {  echo "Mailer Error: " $mail->ErrorInfo;} else {  echo "Message sent!";}} 
Voglio farmi arrivare i dati dal form tramite il trim e poi mandare questa benedetta mail.
C'è qualcosa nel codice che non va?
Grazie mille