Forums

Claus
Claus
Offline
Resolved
0 votes
Hi

How can I install php pear::mail in php engines, I run a website and I have to use a webform with mail to smtp
server and the webform gives this error
The php extension PEAR::Mail required for sending via a mail server is unfortunately not available on your web

I run ClearOS release 7.8.1 (Final) community

Claus
Sunday, October 18 2020, 02:53 PM
Share this post:

Accepted Answer

Sunday, October 18 2020, 05:01 PM - #Permalink
Resolved
0 votes
Claus wrote:

Hi

I have all ready tried that but the error is the same, I think the code
will have somthing to do with the rh-php72 because I use php engines

I can find this in my system
rh-php72-php-pear.noarch

but I can find this rh-php72-php-pear-mail

yum search all rh-php72-php-pear-mail --enablerepo=*

Claus

The php-mail is not a package to need to install by yum or rpm
You must the mail package install by pear command.

try:
/opt/rh/rh-php72/root/usr/bin/pear install Mail
The reply is currently minimized Show
Responses (3)
  • Accepted Answer

    Sunday, October 18 2020, 03:24 PM - #Permalink
    Resolved
    0 votes
    Claus wrote:

    Hi

    How can I install php pear::mail in php engines, I run a website and I have to use a webform with mail to smtp
    server and the webform gives this error
    The php extension PEAR::Mail required for sending via a mail server is unfortunately not available on your web

    I run ClearOS release 7.8.1 (Final) community

    Claus

    Check if php-pear is already installed

    rpm -qa|grep php-pear

    if not
    yum install php-pear

    Then you can install pear mail
    pear install Mail

    Restart web-server
    service httpd restart
    The reply is currently minimized Show
  • Accepted Answer

    Claus
    Claus
    Offline
    Sunday, October 18 2020, 03:36 PM - #Permalink
    Resolved
    0 votes
    Hi

    I have all ready tried that but the error is the same, I think the code
    will have somthing to do with the rh-php72 because I use php engines

    I can find this in my system
    rh-php72-php-pear.noarch

    but I can find this rh-php72-php-pear-mail

    yum search all rh-php72-php-pear-mail --enablerepo=*

    Claus
    The reply is currently minimized Show
  • Accepted Answer

    Claus
    Claus
    Offline
    Monday, October 19 2020, 04:41 PM - #Permalink
    Resolved
    0 votes
    Hi

    /opt/rh/rh-php72/root/usr/bin/pear install Mail

    Yes it was the code

    I have to install this before i worked

    /opt/rh/rh-php72/root/usr/bin/pear install Mail

    /opt/rh/rh-php72/root/usr/bin/pear install net_smtp

    /opt/rh/rh-php72/root/usr/bin/pear install auth_sasl2

    Claus
    The reply is currently minimized Show
Your Reply