Solved

Using PHP PEAR

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

WordPress Tutorial 1: Installation & Setup

WordPress is a very popular option for running your web site and can be used to get your content online quickly for the world to see. This guide will walk you through installing the WordPress server software and the initial setup process.

Question has a verified solution.

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

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…
This article discusses four methods for overlaying images in a container on a web page
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.

623 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