I am using this simple code.
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
$headers .= "From: itsthelucifer@gmail.com" . "\r\n";
mail("you@yourdomain.com","test subject","test body",$headers);
But even this simple code is not running. It's giving me error as
Warning: mail(): SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. q190sm41239770pfb.51 - gsmtp in C:\wamp64\www\phpMailer\mail.php on line 4
FYI: I am working on Netbeans with WAMP server on Windows 10, 64 bit OS.