I'm not sure if I just messed something up in reg_system.cgi, but I couldn't
get the e-mail functionality to the admin and to the customer working in
opensrs-client-2.76.  So, I looked into the send_email sub in
lib/OpenSRS/Util/Common.pm.

In there I found:
    $mail_type = $OpenSRS::Util::ConfigJar::MAIL_SETTINGS{MAIL_TYPE};
    $mail_prog = $OpenSRS::Util::ConfigJar::MAIL_SETTINGS{MAILPROG};

I looked at ConfigJar and it appears to just define a bunch of static
variables, but when it's used in Common.pm, it's used as follows:
    use OpenSRS::Util::ConfigJar;

There is no file passed to the use call here, but in reg_system.cgi it is
passed as follows:
    use OpenSRS::Util::ConfigJar "$path_to_config/OpenSRS.conf";

I'm not sure how to pass this (I believe it's called) anonymous object to
common.pm, but I fixed the email problem as follows:
    $mail_type = $::MAIL_SETTINGS{MAIL_TYPE};
    $mail_prog = $::MAIL_SETTINGS{MAILPROG};


I got this from version 2.58 of the srs client.  Hope this helps people who
may be having problems with their setup.

Brandon
Telco Worldwide Solutions, Inc.
www.telcow.com





-------------------------------------------------------
Use Windows Privacy Tools for e-mail encryption:
www.winpt.com

My public key is available at:
http://pgp.dtype.org:11371/pks/lookup?op=get&search=0xE4B40337

Reply via email to