SMTP error for php emailer
<p>I am trying to set up a php script that would send an email to selected users, I looked on the internet and found out how but can't run the script cos I get the following error:</p>

<blockquote>
  <p>Warning: mail() [function.mail]:
  "sendmail_from" not set in php.ini or
  custom "From:" header missing in
  E:\Program
  Files\xampp\phpMyAdmin\emailer.php on
  line 10</p>
</blockquote>

<p>Here is the code of the script I designed following examples:</p>

<pre><code>&lt;?php
    $recipient = "&lt;ismael.srcyber@gmail.com&gt;";
    $subject = "Flight Status";
    $body = "Flight has just landed.";

    $host = "ssl://smtp.gmail.com";
    $port = "465";


    if(mail($recipient, $subject, $body))
    {
        echo("&lt;p&gt;Message successfully sent&lt;/p&gt;");
    }
    else
    {
        echo("&lt;p&gt;Message Delivery failed &lt;/p&gt;");
    }
?&gt;
</code></pre>

<p>Thanks in advance.</p>
