I have used php mail function for sending mail to local mail id's and external mail id's. using this mail function I am able to send mail to my local mail id's but the mail function is not sending mail to external mail id's. like [email protected]
I have used the following methods to set the SMTP server address.
ini_set("SMTP","net4india.com");
ini_set("sendmail_from","[email protected]");
and I added with header also
$headers .= "SMTP-Hott: net4india.com";
but the mail is not going to gmail.
where I need to configure the SMTP server name in my program to send the mail to gmail,yahoo ,hotmail,etc.,?