Solved

Using PHP PEAR

Posted on 2014-10-01
4
84 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

This article discusses how to create an extensible mechanism for linked drop downs.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

743 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

13 Experts available now in Live!

Get 1:1 Help Now