<?php
ini_set("SMTP","smtp.gmail.com");
$from = "abcd@gmail.com";
$to = "abcd@gmail.com"; //here i have entered this id but its not working wen i wrote my email id and host and port n everything..
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
$host = "abcd.org";
$port = "222";
$username = "abcd";
$password = "def";
$header = "From: ".$from;
mail($to,$subject,$body,$header);
die();
?>
Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. v6sm1818532pbc.27 in C:\xampp\htdocs\xampp\mail1.php on line 15