Developers Heaven Forum

Operating Systems => Lunix & Unix => Topic started by: admin on January 24, 2011, 06:23:31 AM

Title: How to install PEAR Mail Package?
Post by: admin on January 24, 2011, 06:23:31 AM
Hello,

If you want to send PHP mail() with SMTP Authentication then you need to install PEAR Mail Package. This could be done by the following statement:

pear install --alldeps Mail
Title: Re: How to install PEAR Mail Package?
Post by: admin on January 26, 2011, 04:07:03 PM
If you get error like:
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update pear/Mail requires PEAR Installer (version >= 1.5.6), installed version is 1.5.0 No valid packages found install failed

update PEAR as:
pear channel-update "pear.php.net"

That should fix the warning.

Probably then, if you will feel comfortable, you can also upgrade to a latest version of PEAR with,
pear upgrade-all

The upgrade is just to make sure all components you have latest changes in PEAR with them.

if you still get error:
pear/Mail requires PEAR Installer (version >= 1.5.6), installed version is 1.4.9
No valid packages found
install failed


Do:
First: pear upgrade --force pear

Then: pear install --alldeps Mail