[ic] e-mail error

Rick Eicher II interchange-users@interchange.redhat.com
Tue Oct 30 10:32:01 2001


After doing some more investagating, I believe that it is trying to use
Net::SMTP instead of my local sendmail. I have sendmail working. (Can send
email to the MAILORDERTO email address).


In the Config.pm my SendMailProgram is as follows:

['SendMailProgram',
'executable'[$Global::SendMailLocation,'/usr/sbin/sendmail','/usr/lib/sendma
il','Net::SMTP',]

I have the /usr/sbin/sendmail and the /usr/lib/sendmail.

What can I do to make it use sendmail and not Net::SMTP?

Thank you for your time,
Rick Eicher II
www.texol.net



                                                                            
      ],

-----Original Message-----
From: interchange-users-admin@interchange.redhat.com
[mailto:interchange-users-admin@interchange.redhat.com]On Behalf Of Rick
Eicher II
Sent: Tuesday, October 30, 2001 9:11 AM
To: interchange
Subject: [ic] e-mail error


Hello all,

I am haveing a problem getting the order emailed. I get the following in the
catalog error_log:

216.111.193.94 GuEjuRby:216.111.193.94 - [29/October/2001:09:35:33 -0400]
foundation /cgi-bin/foundation/proces s.html ERRORS on ORDER TEST0005:
Error sending mail to rick@texol.net:
Can't call method "mail" on an undefined value at
/usr/lib/interchange/lib/Vend/Util.pm line 1988.

So I looked at the code starting at line 1977:

my $from = $::Variable->{MV_MAILFROM}
                                || $Global::Variable->{MV_MAILFROM}
                                || $Vend::Cfg->{MailOrderTo};

                for(@extra_headers) {
                        s/\s*$/\n/;
                        next unless /^From:\s*(\S.+)$/mi;
                        $from = $1;
                }
                my $mime = '';
                $mime = Vend::Interpolate::mime('header', {}, '') if
$use_mime;
                $smtp->mail($from)or last SMTP;


So my guess is that the $from is not set right. So it follows that
MV_MAILFROM or MailOrderTo is wrong. I have MailOrderTo set to
"rick@texol.net". I have no idea where or how to check or change
MV_MAILFROM.

I have come up with no matches from the archives.

Any one have any ideas?

Thank you for your time,
Rick Eicher II
www.texol.net

_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users