Author Topic: How to install PEAR Mail Package?  (Read 6922 times)

Offline admin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 296
    • View Profile
How to install PEAR Mail Package?
« 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

Offline admin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 296
    • View Profile
Re: How to install PEAR Mail Package?
« Reply #1 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