PEAR::Mail on XAMPP for Windows
How to install the PEAR::Mail package (class) on XAMPP for Windows
What is PEAR::Mail?
"Mail" is a class that provides multiple interfaces for
PEAR::Mail Installation on XAMPP for Windows
First run the XAMPP Control Panel and click on "Shell":
Type in the following code in the XAMPP Shell window:
pear install -a Mail
Hit Enter to start the installation:
The option -a has automatically installed all other required packages.
The installation is done ... you can close the XAMPP for Windows shell.
Test if PEAR::Mail is installed
You can test if PEAR and PEAR::Mail is installed using a simple php test
(Requires php 5.3.2 or php 7++)
echo"PEAR not installed :(";
echo"PEAR installed: ";
echo"\nPEAR::Mail not installed :(";
echo"\nPEAR::Mail installed!: ";
How it works:
The function "stream_resolve_include_path" resolves
a filename against the include path.
It returns the path or false if the file was not found.
The file "System.php" contains the PEAR class and "Mail.php" the PEAR::Mail class.