Installing PEAR::Mail class

here wut i did:

Check wuts been installed:

[root@ns46 /]# /usr/local/bin/pear list
Installed packages, channel
Package Version State
Archive_Tar 1.3.3 stable
Console_Getopt 1.2.3 stable
PEAR 1.8.0 stable
Structures_Graph 1.0.2 stable
XML_Util 1.2.1 stable

I see no Mail or Net_SMTP there, hmm.. lets install it! But first, lets update our channels.

[root@ns46 /]# /usr/local/bin/pear update-channels
Updating channel ""
Channel "" is up to date
Updating channel ""
Update of Channel "" succeeded
Updating channel ""
Update of Channel "" succeeded

Good! Now install it.

[root@ns46 /]# /usr/local/bin/pear install pear/Mail
Did not download optional dependencies: pear/Net_SMTP, use --alldeps to download automatically
pear/Mail can optionally use package "pear/Net_SMTP" (version >= 1.4.1)
downloading Mail-1.2.0.tgz ...
Starting to download Mail-1.2.0.tgz (23,214 bytes)
........done: 23,214 bytes
install ok: channel://

Opps! Theres the Net_SMTP dependencies, lets install that too!

[root@ns46 /]# /usr/local/bin/pear install pear/Net_SMTP --alldeps
parsePackageName(): invalid package name "--alldeps" in "--alldeps"
invalid package name/package file "--alldeps"
Did not download optional dependencies: pear/Auth_SASL, use --alldeps to download automatically
pear/Net_SMTP can optionally use package "pear/Auth_SASL"
downloading Net_SMTP-1.4.2.tgz ...
Starting to download Net_SMTP-1.4.2.tgz (11,826 bytes)
.....done: 11,826 bytes
downloading Net_Socket-1.0.9.tgz ...
Starting to download Net_Socket-1.0.9.tgz (5,173 bytes)
...done: 5,173 bytes
install ok: channel://
install ok: channel://

Done. Hm.. Just a note, i would also suggest you install Mail_Mime as to supports attachments and HTML formats.. :)

Ouh yeah, just /etc/init.d/httpd restart if its not working, and for ref to test the functions, refer here and here and here. Good luck!



Popular posts from this blog

Python: thread.error: can't start new thread

Windows 2003 W2k3 Getting Current MTU Size