The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Start Up and more >> Email Admin of Item End
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1084052478

Message started by reindance on 05/08/04 at 23:41:18

Title: Email Admin of Item End
Post by reindance on 05/08/04 at 23:41:18

Since I am a NEWBIE to Perl, I cannot figure out how to add "Email Admin of Item End" (I want this for any outside posters so I can check on their items as they end). The Add On in Everysoft does not work with the new AuctionEA script 1.6. Can anyone help me as what I need to add in the Close Item sub?

Title: Re: Email Admin of Item End
Post by Forum Admin on 05/09/04 at 11:52:01

Search sub close_item for the lines:

                   $subj = "$txt{'Auction Close'}: $title";
                   ($lastbid[8] = $lastbid[9] = $firstbid[9] = $firstbid[10] = $txt{'Phone'} = $txt{'Fax'} = " ")
                   unless $config{'print_phone_fax'} == 1;

                       if ($#bids >= 1) {
                           if ($lastbid[2] >= $reserve or $buy_it_flag == 1) {

Replace the lines with the following
Code:

                   $subj = "$txt{'Auction Close'}: $title";
                   ($lastbid[8] = $lastbid[9] = $firstbid[9] = $firstbid[10] = $txt{'Phone'} = $txt{'Fax'} = " ")
                   unless $config{'print_phone_fax'} == 1;

$message = <<EO_MAIL;
$txt{'Auction number'}: $item
$txt{'Title'}: $title
$txt{'is now closed'}.        
EO_MAIL

                     sendemail(
                       \$config{'admin_address'},
                       \$config{'admin_address'},
                       \$subj,
                       \$message
                     );

                       if ($#bids >= 1) {
                           if ($lastbid[2] >= $reserve or $buy_it_flag == 1) {

Title: Re: Email Admin of Item End
Post by reindance on 05/09/04 at 16:06:16

Ok, I did this and it casued an Internal Server Error. Not sure what is wrong.

Title: Re: Email Admin of Item End
Post by Forum Admin on 05/09/04 at 16:44:59

must work

Title: Re: Email Admin of Item End
Post by test on 08/23/04 at 12:54:39

it does work!! give an enter after the eomail command though! :-)

The eAuction Support Forums » Powered by YaBB 2.2!
YaBB © 2000-2007. All Rights Reserved.