Solved

Using PHP PEAR

Posted on 2014-10-01
4
85 Views
Last Modified: 2014-10-05
Hello Experts,

I am trying to send mail with PHP PEAR using the code example here:
http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm

However, the first error is that it cannot find the mail.php include. From where can I find this?

I believe that I have PEAR installed successfully.

Thank you,
0
Comment
Question by:APD_Toronto
  • 2
4 Comments
 
LVL 61

Accepted Solution

by:
gheist earned 250 total points
ID: 40356353
Do you have PEAR called MAIL installed? aka mail.php...
0
 

Author Comment

by:APD_Toronto
ID: 40357301
I just copied the script, but i don't know what mail.php is
0
 
LVL 61

Expert Comment

by:gheist
ID: 40357514
It is a PECL installable module
0
 
LVL 33

Assisted Solution

by:Slick812
Slick812 earned 250 total points
ID: 40357691
greetings APD_Toronto, , not sure I can help you much with this? But I will say something I hope will help, the PEAR server package, is a PHP system addition, that is added to the PHP system when the PHP system is compiled on the SERVER computer, this is something that you may not have any control over. If you are on a Shared account Hosting Server, then in your Host Account server settings (cPanel in many servers), there is likely an Account option that says PEAR, you have to click on this to get a list of available PEAR packages, and then Install the "Mail Pear package". This will many times Install the Pear Mail package, for you to use by having this line -
     require_once "Mail.php";

HOWEVER, all server Hosts, are NOT configured in the same way, on some servers, I have had to include the "path" to the Pear package such as -
      require_once "/sys/pear/Mail.php";

you might go to you Server support pages, and do a search for "pear" or "using pear", or do a support ticket for "how do I use the pear"
ask question if you need more info
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now