I have configured a php page for sending email once a submit button is pressed,
if(isset($_POST['submit']))
{
// impostazioni per invio email
$to = $query2['email']; // email destinatario
$from = "info@xxxx.it". "\r\n" ; // email mittente
$subject = $oggetto;
$message = $_POST['testoconferma'];
$headers = "From:" . $from;
mail($to,$subject,$message,$headers)
I cannot figure out why once pressed it doesn't send the email. Did I forgot something?