Menu

Mail class not found

Debian
Kevin
2016-02-22
2016-02-25
  • Kevin

    Kevin - 2016-02-22

    This might be a bug for a completely seperate software package but I did use the debian install script.

    when I try to send a recieved fax to an email (I have it configured to use a seperate SMTP server) I get this error in apache:

    [Mon Feb 22 15:39:29 2016] [error] [client (IP)] PHP Fatal error: Class 'Mail' not found in /usr/share/php/Mail/smtp.php on line 74, referer: http://(efaxhost)/avantfax/email.php?fid=33

    I poked around and found this is an error in pear but I couldn't figure out what package is missing.

    Help please.

     
  • Kevin

    Kevin - 2016-02-25

    A lot of digging around and I am thinking that somehow something is not configured correctly between apache/php/pear mailer.

    /usr/share/php/Mail/smtp.php is the php-pear mailer system.

    SMTP implementation of the PEAR Mail interface. Requires the Net_SMTP class.
    

    Here is a list of my pear packages:

    Installed packages, channel pear.php.net:
    =========================================
    Package           Version State
    Archive_Tar       1.4.0   stable
    Auth_SASL         1.0.6   stable
    Console_Getopt    1.4.1   stable
    DB                1.9.2   stable
    File              1.4.1   stable
    File_CSV          1.0.0   stable
    File_Util         1.0.0   stable
    MDB2              2.4.1   stable
    MDB2_Driver_mysql 1.4.1   stable
    Mail              1.3.0   stable
    Mail_Mime         1.10.0  stable
    Mail_mimeDecode   1.5.5   stable
    Net_SMTP          1.7.1   stable
    Net_Socket        1.0.14  stable
    PEAR              1.10.1  stable
    Structures_Graph  1.1.1   stable
    XML_Util          1.3.0   stable
    

    I hope someone has an idea of what could be wrong.

     
  • Kevin

    Kevin - 2016-02-25

    Got it!!
    Looks like, for whatever reasion, there may be a bug in the code for debian towards using an external SMTP server:

    add:

    require_once 'Mail.php';
    

    to line 59 of:
    includes/htmlMimeMail5.php

     

Log in to post a comment.