The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Addon Proposals >> email to admin
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1071931440

Message started by floinfo on 12/20/03 at 05:16:07

Title: email to admin
Post by floinfo on 12/20/03 at 05:16:07

Hello Dieter,

I am testing my auction site... so far everything is looks great!
One question: I am the "admin" and I want to know everything what is going on my action... so could you find a way out, how can I get email notification if someone post a new item? I want to check every new posting. (for safety reason, it would be a very good idea)

It could work exactly like the email admin for each new registration process...

Thanks, Balint

Title: Re: email to admin
Post by Forum Admin on 12/20/03 at 09:56:28

Search the script for:
sub proc_new

Search sub proc_new for:

           $config{'regdir'} && update_reg_file(
               $form{'ALIAS'},
               "$form{'CATEGORY'}$item_number"
           );

Paste the following lines behind it:

Code:

my $message = <<EO_EMAIL;
Title: $form{'TITLE'}

Category: $form{'CATEGORY'}

Seller: $form{'ALIAS'}

http://$ENV{'HTTP_HOST'}$ENV{'SCRIPT_NAME'}?action=dispitem&category=$form{'CATEGORY'}&item=$item_number&lang=$form{'lang'}">

EO_EMAIL
         
         my $subject = 'New Item Posted';

         sendemail(
                \$config{'admin_address'},
                \$config{'admin_address'},
                \$subject,
                \$message
         ) if $config{'cc_to_admin'} == 1;


 

Title: Re: email to admin
Post by floinfo on 12/23/03 at 03:14:35

Hi Dieter,

Thanks for the adon!
But could you take a look on my site...
Since I pasted it in the eAuction.pl file exactly like you said... my auction doesn't start. Just a blank page, no error message.

Balint

Title: Re: email to admin
Post by Forum Admin on 12/23/03 at 09:53:44

It's been done ...  ;)

End-Of-File markings MUST be completed with a carriage return.

For example:

my $message = <<EO_EMAIL;
any text
EO_EMAIL[HitTheReturnKey]

Each script will crash if there is a BLANK between the End-Of-File marking and the carriage return.

Title: Re: email to admin
Post by floinfo on 12/28/03 at 01:34:48

WOOOOW!

Thanks master!

You are cool!

Balint  8)

Title: Re: email to admin
Post by test on 08/23/04 at 12:14:18

WOW he is good, tried to fix it myself but forgot theat line!!!! and rule!!!!!

Title: Re: email to admin
Post by sraphim on 12/11/04 at 22:23:04

Care to add the carriage return to the script? Just so us dummies don"t screw it up?

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