title: PHP Warning: require(Mail.php): failed to open stream: No such file or directory in /home/
body: <p>I am using <code>Mochahost</code> , I have have installed Mail from Pear. Now i don't know where it has installed the the files. </p>
  
  <p>Kindly guide me where it has stored the installed files. </p>
  
  <p>When i am using the following code its giving me the following error message.</p>
  
  <pre><code>      PHP Warning:  require(Mail.php): failed to open stream: 
  No such file or directory in /home/
  </code></pre>
  
  <p>The error message is obvious, as i haven't added any file in my application folder.</p>
  
  <p>The following is the code i am following. </p>
  
  <p>Kindly guide me how to include the path of'Mail.php' file .</p>
  
  <pre><code>&lt;?php
  
  //require_once "Mail.php";
  require "Mail.php";
  
  
  
  $from = "Taha &lt;abc@Hotmail.com&gt;";
  
  
  $to = "Taha &lt;abc@Hotmail.com&gt;";
  
  $subject = "Hi!";
  
  $body = "Hi,\n\nHow are you?";
  
  
  
  $host = "111.11.11.111";
  
  $username = "abc@Hotmail.com";
  
  $password = "password";
  
  
  
  $headers = array ('From' =&gt; $from,
  
  
    'To' =&gt; $to,
  
    'Subject' =&gt; $subject);
  
  
  
   $port = "2525";
  
   $smtp = Mail::factory('smtp',
  
    array ('host' =&gt; $host,
  
      'port' =&gt; $port,
  
      'auth' =&gt; true,
  
      'username' =&gt; $username,
  
  
      'password' =&gt; $password)); 
  
  $mail = $smtp-&gt;send($to, $headers, $body);
  
  echo "PEAR before";
  
  if (PEAR::isError($mail)) {
  
    echo("&lt;p&gt;" . $mail-&gt;getMessage() . "&lt;/p&gt;");
  
  
   } else {
  
    echo("&lt;p&gt;Message successfully sent!&lt;/p&gt;");
  
   }
  </code></pre>