Jump to content

PHP Pear question

Don E

Recommended Posts

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!

  • Like 1
Link to comment
Share on other sites

I know this may sound obvious, but... is Mail.php into


i.e. at


If you've used default settings when installing, it should instead be at


Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...