Ciao innazitutto grazie per l'aiuto.
Ho provato ma quando inserisco questa riga come mi indicavi non mi funziona più l'invio.
Ti posto il codice:
codice:
<?php
if(!isset($_POST['nome'])){die("accesso non autorizzato!")};
// L'INDIRIZZO DEL DESTINATARIO DELLA MAIL
$to = "email@gmail.com";
// IL SOGGETTO DELLA MAIL
$subject = "Modulo richiesta";
$body .= "Nome:
" . trim(stripslashes($_POST["nome"])) . "
";
$body .= "Cognome:
" . trim(stripslashes($_POST["cognome"])) . "
";
$body .= "Azienda:
" . trim(stripslashes($_POST["azienda"])) . "
";
$body .= "E-Mail:
" . trim(stripslashes($_POST["email"])) . "
";
$body .= "Telefono:
" . trim(stripslashes($_POST["telefono"])) . "
";
$body .= "Tipologia:
" . trim(stripslashes($_POST["tipologia"])) . "
";