Developers Heaven Forum

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

Title: How to install PEAR Mail Package?
Post by: admin on January 24, 2011, 01:23:31 PM
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:

Code: [Select]
pear install --alldeps Mail
Title: Re: How to install PEAR Mail Package?
Post by: admin on January 26, 2011, 11:07:03 PM
If you get error like:
Code: [Select]
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:
Code: [Select]
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,
Code: [Select]
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:
Code: [Select]
pear/Mail requires PEAR Installer (version >= 1.5.6), installed version is 1.4.9
No valid packages found
install failed

Do:
First:
Code: [Select]
pear upgrade --force pear
Then:
Code: [Select]
pear install --alldeps Mail