ho scritto una funzione PHP per inviare una email
Codice PHP:
<?php 
$dest 
"palla@hotmail.it";
            
$headers "From:miamail@gmail.it\r\n ";
$headers .= "content-type: text/html; charset=iso-8859-1\r\n";
            
$subject "oggetto email";
$message "messaggio messaggio messaggio";
ini_set("SMTP","smtp.gmail.com"); 
            
mail($dest$subject$message$headers);
?>
ma mi genera questo errore
codice:
Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. p9sm1148419fkb.7 in C:\AppServ\www\scr\provamail.php on line 11