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 
Mail prog problems (Read 1815 times)
vladek
eAuction User
**
Offline

I don't know Perl

Posts: 5
New Zealand
Gender: male
Mail prog problems
08/05/05 at 06:25:58
 
Hi,

I'm trying to run small auction of old office computers and so far the setup was OK until I tried to connect to small SMTP server. Although the server works (tested and confirmed), the script is unable to send an e-mail to a person requiring registration confirmation.

The SMTP server runs in C:\SMTPServer\localsrv.exe

and my script looks like:

# You need to assign either a mail program or
# a mail host so e-mails can be sent out.
# Configure your MAIL PROGRAM

  $config{'get_mail'}            = 1; # Set this from 1 to 0 if you want to use your own setting  
  #$config{'mailprog'}            = '/SMTPServer/localsrv.'; # no additional options please
 
# or Configure your MAIL HOST (SMTP)
   $config{'mailhost'}      = '/SMTPServer/localsrv.exe';    
   
# Set this from 0 to 1 if the script is running with a real Web-Server

.. and it does not work.

Any suggestions?

Thanks!

Vladimir
Back to top
 
 


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

Dipl. Paranoiac ®

Posts: 1162
Germany
Gender: male
Re: Mail prog problems
Reply #1 - 08/05/05 at 11:06:06
 
Set this Code:
   $config{'get_mail'}  = 1; # Set this from 1 to 0 if you want to use your own setting 

to 0

This Code:
   
# or Configure your MAIL HOST (SMTP)
   $config{'mailhost'} = '/SMTPServer/localsrv.exe';  

is wrong.
You point to the SMTP program, but you have to point to the URL of your SMTP server.    
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
vladek
eAuction User
**
Offline

I don't know Perl

Posts: 5
New Zealand
Gender: male
Re: Mail prog problems
Reply #2 - 08/08/05 at 05:03:53
 
Thanks, but still doesn't work.

Here is the whole section - maybe I spoiled something:

#-#############################################
# Config-Section-01
#-#############################################

# The name of your servers cgi-bin directory
   $config{'cgi_dir'}            = 'cgi-bin'; # Default for most servers
   
# The cgi-bin subdirectory where your eAuction.pl will be stored
   $config{'auction_dir'}      = 'eAuction161';
   
# The Path to a 'NON-WEBACCESSABLE' directory of your system
# Maybe you have to chmode it if you use your own setting

  $config{'get_path'}              = 1; # Set this from 1 to 0 if you want to use your own setting  
  $config{'basepath'}              = '/Auction';

# You need to assign either a mail program or
# a mail host so e-mails can be sent out.
# Configure your MAIL PROGRAM

  $config{'get_mail'}            = 0; # Set this from 1 to 0 if you want to use your own setting  
  #$config{'mailprog'}            = '/SMTPServer/localsrv.'; # no additional options please
 
# or Configure your MAIL HOST (SMTP)
   $config{'mailhost'}      = 'http://akldnotes';    
   
# Set this from 0 to 1 if the script is running with a real Web-Server
   $config{'web_server'}      = 0;
   

If I have $config{'web_server' = 0

I get printout to my screen stating:

You are on your local server
so this is just for testing
--------------------------------------------------------------------------------

To: vlado3@...
From: me@...
Subject: Auction Password
PLEASE DO NOT REPLY TO THIS E-MAIL

Thank you for registering to use the online auctions at eAuction

Your Alias (as you entered it): v

However an e-mail is not being sent.

If I have $config{'web_server' = 1

I get an error:

Error
Can't call method "autoflush" on an undefined value at C:\Program Files\OmniSecure\CGI-BIN\eauction161\eauction.pl line 3616.
Invalid argument

BTW, are there any help files of how to use your script?

Thanks ..

Vladimir
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