uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Tech Support
       Support Policy
       Knowledge Base
       Reference Sites
       Software Piracy
       Legal Notices
       Privacy Policy
       Reseller Info
       Contact Us
       Site Map

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Feb-16-19 09:46 PM EST
Original Message
Author brian on 01-03-2000 at 20:26 (EST)
I have recently converted to qmail from sendmail on my unix server. how do I change my cgi script to send order notification emails to me. item # 3 in the cgi script set up only gives the option for sendmail. Do i need a updated cgi script? Please help as I have people ordering and I am not recieving notification.


Table Of Contents
  qmail charlie edmunds, 2000-01-04 18:35:08 (1)
            did as suggested brian, 2000-01-04 19:56:26 (2)
  q-mail charlie edmunds, 2000-01-04 21:29:31 (3)

Messages In This Discussion
         1. qmail
        Author charlie edmunds on 01-04-2000 at 18:35 (EST)

You may be able to get your mail to work via sockets now that ur host is not using sendmail:

No Email but the Order Files Are Successfully Being Written

If the order files are successfully being written to your orders directory - then the email problem may have to do with the sendmail configuration on your server. That is, on UNIX servers, uShop uses the standard UNIX mail utility "sendmail" to send the email notifications. If for some reason, sendmail is not sending any email (perhaps because it is not correctly mapping the email address with the DNS table), you can try using SOCKETS to send the email via your regular mail server.

That is, the only difference between setting the $server_os to "UNIX" or "NT" (question #2 at the top of the CGI script)- is how the script sends the email. For "UNIX", the script uses "sendmail". For "NT", the script uses SOCKETS. So if sendmail is not working on your UNIX server, then perhaps opening a socket to your mail server will work. To try this, you will have to open the ushop_cgiscript with any text editor (such as WordPad or NotePad) and make the following changes:

At the top of the script, set question #2 to:

$server_os = "NT";

Set question #4 to your mail server's IP address, something like:

$smtp_address = "123.456.789.0";

Adjust Question #5 accordingly. You may have to play with these settings, but usually just uncommenting the first three lines and commenting out the second two lines will work for UNIX servers. That is set #5 to:

use Socket;

#$AF_INET = 2; # Comment out these lines with a # sign.

Charlie Edmunds
Microburst Technologies, Inc
                 2. did as suggested
                Author brian on 01-04-2000 at 19:56 (EST)
Thanks for your reply, I did as you suggested, and I still did not recieve order confirmation, or customer reciept. could I have a problem with my mail server, or just wrong settings in ushop script? When I change sockets around I get error, can't create socket.
         3. q-mail
        Author charlie edmunds on 01-04-2000 at 21:29 (EST)

The other thing to try is to ask your host if what the path is to qmail and use that in item # 3 (if it is different than sendmail). If that doesn't work, I'm going to have to research qmail because I don't have any experience with it. We have about 1300 installed copies of uShop and I think we are just about 100 percent successful with unix installations so hopefully we'll get yours setup too.

Charlie Edmunds
Microburst Technologies

© 2003 Microburst Technologies, Inc.