Install PHP Pear Mail / SMTP package on CentOS / Red Hat Enterprise Linux ZT
2010-08-27 19:27
375 查看
Recently I've noticed that Redhat removed support for following php pear packages:
a) NET/SMTP : An implementation of the SMTP protocol
b) Mail : Class that provides multiple interfaces for sending emails
c) Net/Socke : Network Socket Interface
![](http://figs.cyberciti.biz/3rdparty/php-logo.png)
The simplest solution is downloading and installs these files from php pear repo.
a) NET/SMTP : An implementation of the SMTP protocol
b) Mail : Class that provides multiple interfaces for sending emails
c) Net/Socke : Network Socket Interface
![](http://figs.cyberciti.biz/3rdparty/php-logo.png)
The simplest solution is downloading and installs these files from php pear repo.
Step # 1: Download files
Use wget command to download all files:# cd /tmp # wget http://download.pear.php.net/package/Mail-1.1.14.tgz # wget http://download.pear.php.net/package/Net_SMTP-1.2.10.tgz # http://download.pear.php.net/package/Net_Socket-1.0.8.tgz[/code] Untar all files:# tar -zxvf Mail-1.1.14.tgz # tar -zxvf Net_SMTP-1.2.10.tgz # tar -zxvf Net_Socket-1.0.8.tgzStep # 2: Install files
Simply copy file to your webroot such as /www/usr/share/pear or standard location such as /usr/share/pear:# cd /usr/share/pear # mkdir Net # cd Net # cp /tmp/Net_SMTP-1.2.10/SMTP.php . # cp /tmp/Net_Socket-1.0.8/Socket.php . # cd .. # cp -avr /tmp/Mail-1.1.14/Mail/ . # cp -avr /tmp/Mail-1.1.14/Mail.php .Step # 3: Test SMTP email
Now you have required files, all you have to do is send email using authenticated smtp server.
相关文章推荐
- install composer for php 7 on CentOS 7
- Install Nginx/PHP-FPM on CentOS/RHEL
- How to Install Linux, Apache, MySQL, PHP (LAMP) stack on CentOS 6 【Reliable】
- Install PHP v8js with PHP 5.6 on Centos 7
- How to install Apache, PHP 7.1 and MySQL on CentOS 7.3 (LAMP)
- Install PHP 7, Apache, MySQL 5.6 on CentOS / RHEL 7.1 & 6.7 + Wordpress
- Install Nginx/PHP-FPM on Fedora 20/19, CentOS/RHEL 6.5/5.10
- How to Install PHP 7 with Apache and MariaDB on CentOS 7/Debian 8
- How To Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6
- How to install php memcached on CentOS 6.5
- Install Apache, PHP And MySQL On CentOS 7 (LAMP)
- Install FFmpeg and ffmpeg-php on CentOS Easily
- Install JSON PHP Extension on CentOs / RedHat
- [置顶] Install FFmpeg and ffmpeg-php on CentOS Easily
- Install a GitLab CE Omnibus package on CentOS 7
- How to Install PHP 7 on CentOS/RHEL 7.1 & 6.7
- How To Install Linux, nginx, MySQL, PHP (LEMP) stack on CentOS 6
- Install Apache, PHP And MySQL On CentOS 7 (LAMP)
- Howto Install PHP 5.4, 5.5 or 5.6 on CentOS 6 and CentOS 7
- Install a GitLab CE Omnibus package on centos 6.4