Solved

Using PHP PEAR

Posted on 2014-10-01
4
92 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 62

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 62

Expert Comment

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

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.

734 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