The eAuction Support Forums
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl
eAuction 1.6.1.x >> Unsorted >> Mail prog problems
https://www.everyscript.de/cgi-bin/yabb/YaBB.pl?num=1123215958

Message started by vladek on 08/05/05 at 06:25:58

Title: Mail prog problems
Post by vladek on 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

Title: Re: Mail prog problems
Post by Dieter Werner on 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.    

Title: Re: Mail prog problems
Post by vladek on 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

Title: Re: Mail prog problems
Post by vladek on 08/08/05 at 05:51:01

Hi,

Also following config just invokes outlook explorer but does not create or send any messages.

#-#############################################
# 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'}            = 1; # Set this from 1 to 0 if you want to use your own setting  
  $config{'mailprog'}            = '/Program Files/Outlook Express/msimn.exe'; # 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;
   
#-#############################################

Cheers,
Vladimir

Title: Re: Mail prog problems
Post by Dieter Werner on 08/08/05 at 13:47:34

Are you sure that the OmniServer is having an SMTP-Part?

And ...
  $config{'get_mail'}  = 1; # Set this from 1 to 0 if you want to use your own setting    

And ...
I know nothing about the use of msimn.exe
what's that?

Title: Re: Mail prog problems
Post by vladek on 08/08/05 at 22:20:43

OK, Omni Secure web server may not have SMTP component, but how was I supposed to know that the SMTP server has to be a component of the web server and not the stand alone application?

Is the script able to work with stand alone SMTP server? On the same machine?

If not, I can use any web server you recommend. Is there any recommended setup/web server/SMTP server that works from the box?

From 1 to 0 - OK for my own setting. What setting?

Msimn in Outlook Explorer, the program that comes with all Windows installations.

Also, how do you log in as an admin?

Thanks,

Vladimir

Title: Re: Mail prog problems
Post by Dieter Werner on 08/09/05 at 16:07:26


vladek wrote:
OK, Omni Secure web server may not have SMTP component, but how was I supposed to know that the SMTP server has to be a component of the web server and not the stand alone application?

Is the script able to work with stand alone SMTP server? On the same machine?

If not, I can use any web server you recommend. Is there any recommended setup/web server/SMTP server that works from the box?

From 1 to 0 - OK for my own setting. What setting?

Msimn in Outlook Explorer, the program that comes with all Windows installations.


Sorry, I'm just a programmer.
What you need is a server-specialist.


vladek wrote:
Also, how do you log in as an admin?

Thanks,

Vladimir


http://YourDomain/cgi-bin/eAuction161/eAuction.pl?action=admin

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