how to configure the php mail function with SMTP server?
<p>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 ss@gmail.com </p>

<p>I have used the following methods to set the SMTP server address.</p>

<blockquote>
  <p>ini_set("SMTP","net4india.com");<br>
  ini_set("sendmail_from","sugumar@csoft.co.in");</p>
</blockquote>

<p>and I added with header also</p>

<blockquote>
  <p>$headers .= "SMTP-Hott:
  net4india.com";</p>
</blockquote>

<p>but the mail is not going to gmail.</p>

<p>where I need to configure the SMTP server name in my program to send the mail to gmail,yahoo ,hotmail,etc.,?</p>
