Don E Posted May 14, 2012 Share Posted May 14, 2012 Hey everyone, I installed Pear on my wampserver and I don't think I have the include_path set correctly in the php.ini file because when I do this: include('Mail.php'); // email address here are just dummy address for this post $mail = Mail::factory("mail"); $headers = array("From"=>"me@example.com", "Subject"=>"Test Mail"); $body = "This is a test!"; $mail->send("name@mail.com", $headers, $body); I get an error telling me no such file is found etc. I went into the include path in the php.ini file and did this:; Windows: "\path1;\path2"include_path = ".;c:\php\includes;C:\wamp\bin\php\php5.3.8\pear\PEAR;" but I'm still getting the same error. (Yes I restarted all wamp services as well) Maybe I did that incorrectly or I installed pear wrong. Any input is greatly appreciated. Thanks! 1 Link to comment Share on other sites More sharing options...
boen_robot Posted May 14, 2012 Share Posted May 14, 2012 I know this may sound obvious, but... is Mail.php into C:\wamp\bin\php\php5.3.8\pear\PEAR i.e. at C:\wamp\bin\php\php5.3.8\pear\PEAR\Mail.php If you've used default settings when installing, it should instead be at C:\wamp\bin\php\php5.3.8\pear\Mail.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now