Page 1 of 1

rquired file trouble

Posted: Wed May 14, 2003 1:10 pm
by matthiasone
I am have trouble with this code:

Code: Select all

require_once("/usr/www/users/faog/Mail.php");
  $recipients = $infoї'recipients'];
  $headersї'From'] = $infoї'from'];
  $headersї'To'] = $infoї'recipients'];
  $headersї'Subject'] = $infoї'subject'];
  $body = $infoї'body'];    

  $paramsї'host'] = 'mail.lufkin.org'; 
   // Create the mail object using the Mail::factory method
  $mail_object =& Mail::factory('smtp', $params);
  $mail_object->send($recipients, $headers, $body);
  return 1;
when ever ran it gives this error

Code: Select all

Fatal error: Failed opening required 'Mail.php' (include_path='') in /usr/www/users/faog/email_fns.php on line 4
Line 4 is:

Code: Select all

require_once("/usr/www/users/faog/Mail.php");
what is wrong with my path?

Posted: Wed May 14, 2003 1:30 pm
by twigletmac
It can't find the file, does:

Code: Select all

require_once 'Mail.php';
work?

Mac

Posted: Wed May 14, 2003 1:35 pm
by m3mn0n
capitalization?

Posted: Thu May 15, 2003 12:48 am
by volka
where?