title: PHP: mail() function with runtime ini_set() for SMTP and SMTP_PORT not working on Linux
body: <p>I have used a PHP code for Mailing using a SMTP HOST as given below:</p>
  
  <pre><code>        ini_set('SMTP','myserver');
  ini_set('smtp_port',25);
  $to = $email;
  $headers  = "MIME-Version: 1.0" . "\r\n";
  $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n";
  $headers  .= "From: NO-REPLY&lt;no-reply@mydomain.com&gt;" . "\r\n";
  $subject = "Confirmation For Request";
  $message = '&lt;html&gt;
                  &lt;body&gt;
                      &lt;p&gt;Hi '.$firstname.' '.$lastname.'&lt;/p&gt;
                      &lt;p&gt;
                          We recieved below details from you. Please use given Request/Ticket ID for future follow up:
                      &lt;/p&gt;
                      &lt;p&gt;
                          Your Request/Ticket ID: &lt;b&gt;'.$ticketID.'&lt;/b&gt;
                      &lt;/p&gt;
                      &lt;p&gt;
                      Thanks,&lt;br&gt;
                      '.$team.' Team.
                      &lt;/p&gt;
                  &lt;/body&gt;
              &lt;/html&gt;';
  mail( $to, $subject, $message, $headers ); 
  </code></pre>
  
  <p>Now When i execute the code in Windows Localhost..  I am succcesfully recieving the mail whereas, If I deply the same code on my Linux setup, I do not recieve anymail, though the mail() function returns true in linux machine as well....</p>
  
  <p>On looking into the phpinfo for both windows localhost and Linux server, for mail parameters I found a single difference, </p>
  
  <p>In Windows I found sendmail_path == "No Value", whereas on linux server it says, "usr/sbin/sendmail -t -i"</p>
  
  <p>Could some one help me to resolve this issue?</p>
  
  <p>NOTE: In windows, its a WAMP setup, whereas Linux is a Dedicated server...</p>