eAuction
  Not just another Perl script
Google
Welcome, Guest. Please Login or Register


If you use eAuction a lot and like it or if you make money from eAuction or from eAuction-related activities ...
then the project asks you for a donation in favor of the further development.



The forums are protected by
AccessControl
(written by Dieter Werner)
Click here if you want to check your IP against the most important RBLs of the net.
Click here in order to visite the AccessControl forums.


<< Visit the international e Auction Marketplace >>
Buy and sell PC and Consumer Electronic components






  HomeHelpSearchLoginRegister
 



Pages: 1 2 3 
email to admin (Read 1355 times)
floinfo
eAuction User
**
Offline

I love Perl

Posts: 26

email to admin
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
Back to top
 
 


Advertising
View Profile   IP Logged
Dieter Werner
Administrator
*****
Offline

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: email to admin
Reply #1 - 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;




Back to top
 
 

Multimedia file viewing and clickable links are available for registered members only!!  You need to Login or Register!!


Greetings from Germany
Dieter Werner




Advertising
View Profile | WWW   IP Logged
floinfo
eAuction User
**
Offline

I love Perl

Posts: 26

Re: email to admin
Reply #2 - 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
Back to top
 
 


Advertising
View Profile   IP Logged
Pages: 1 2 3 


If you like eAuction, please Rate it.
If you don't like eAuction, please Rate it too.


1 is being poor and 10 is being excellent


EveryScript

ip-location


AccessControl - Members Only