uShop English (U.S.) for 179!

uStorekeeper English (U.S.) for 149!

 Products
       uTest
       uReserve
       uShop
       uStorekeeper
       uGolf
       uDirectory
       uSignIn
 Tech Support
       Support Policy
       Knowledge Base
            uTest
            uReserve
            uShop
            uStorekeeper
            uGolf
            uDirectory
            uSignIn
       Documentation
       Reference Sites
 Legal
       Software Piracy
       Legal Notices
       Privacy Policy
       Licensing
 Miscellaneous
       Reseller Info
       Contact Us
       Site Map
Mail notification not going through

Knowledge Base Lobby : uShop Support Conference : CGI Script Related Problems
Nov-20-17 07:46 PM EST
Original Message
Mail notification not going through
Author Steve Brinegar on 12-02-1999 at 09:41 (EST)
Everything is working well except the mail reciept to the customer and storeowner - using CGI input with server mailpath set correctly @ /usr/sbin/sendmail, all orders are being processed and saved - just not recieving "any" email. Other scripts are sending mail without a hitch.

Any help would be welcome.
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  mail not working edmunds, 1999-12-02 19:31:45 (1)

Messages In This Discussion
         1. mail not working
        Author edmunds on 12-02-1999 at 19:31 (EST)
Steve,

Your e-mail is not working. You didn't say whether you are on a unix or NT host. Iv'e included some troubleshooting info for both.

Hope it helps, Charlie Edmunds
Micrburst Technologies, Inc.

1.8 Order is placed - but I don't get any email (UNIX Server)

If upon trying to place an order you successfully get the order receipt page - but you never receive any email notifications - then there are two scenerios to check based on whether the order files are being created in your "orders" directory. That is, each time an order is placed, an order file will be created in the "orders" directory that you made on your server. Take a look on your server and see if the order files are being created and then follow the appropriate scenerio below.
Scenerio 1 - No Email and No Order Files

If the order files are not being created and yet you still successfully get the order receipt page, then you may just have the "scriptpath" parameter of your order applet pointing to the ushop_cgiscript on our www.uburst.com server. That is, check the HTML of your order applet and make sure that the "scriptpath" parameter is pointing to the ushop_cgiscript on your server.



Scenerio 2 - OPTION 1 - 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. uShop uses the standard UNIX mail utility "sendmail" to send the email notifications, however, some UNIX servers do not like the "-n" option to be used with sendmail. If this is the case with your server, you can try removing the "-n" option from the sendmail command line in the ushop_cgiscript. To do this, follow the following steps:


Open the ushop_cgiscript file with any text editor such as WordPad.


Locate the following line in the script (it will be just a few lines after the configuration questions at the top of the script):

$mail_program = $sendmail_path . " -t -n";


Remove the "-n" by changing that line to:

$mail_program = $sendmail_path . " -t";


Save the file and try it out on your server again.



Scenerio 2 - OPTION 2 - 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 = AF_INET;
$SOCK_STREAM = SOCK_STREAM;

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



And that should do it!

1.9 Order is placed - but I don't get any email (NT Server)

If upon trying to place an order you successfully get the order receipt page - but you never receive any email notifications - then there are two scenerios to check based on whether the order files are being created in your "orders" directory. That is, each time an order is placed, an order file will be created in the "orders" directory that you made on your server. Take a look on your server and see if the order files are being created and then follow the appropriate scenerio below.
Scenerio 1 - No Email and No Order Files

If the order files are not being created and yet you still successfully get the order receipt page, then you may just have the "scriptpath" parameter of your order applet pointing to the ushop_cgiscript on our www.uburst.com server. That is, check the HTML of your order applet and make sure that the "scriptpath" parameter is pointing to the ushop_cgiscript on your server.


Scenerio 2 - No Email but the Order Files Are Successfully Being Written (BLAT OPTION)

If the order files are successfully being written to your orders directory - then the email problem may have to do with the socket/mail server configuration. As an alternative to using sockets to send email on NT servers, we do have a version of the script that uses BLAT to send email. BLAT is an email utility that is common to most NT servers, so if your server can use BLAT, try using this script:


uShopBlat.zip

(Right-click on the link and choose SaveAs)

(English version only).


Notes about the BLAT script:


You can rename the script to "ushop_cgiscript.pl" or to whatever you are currently using.


You will have to open the script with any text editor (such as WordPad or NotePad) and answer the configuration questions at the top of the script -- Use the settings at the top of your current script as a model.


And be sure to configure the new setting on line #7 of the script to point to BLAT on your server, such as:

$mailprog = 'c:/Blat/blat.exe';


At this time, this BLAT script is only available for the English Versions of uShop, but we are working on making a BLAT script for the international versions of uShop as well.


Scenerio 3 - No Email but the Order Files Are Successfully Being Written (OTHER OPTIONS)

If the order files are successfully being written to your orders directory - then the email problem may have to do with the socket/mail server configuration. If using the BLAT alternative to send email (as described above) is not available on your server, then let us know what the prefered method is to send email from your server. We have several other versions of the ushop_cgiscript that use different methods to send email - such as a version that uses WindMail. Let us know and we may already have a version of the ushop_cgiscipt that uses the email utility you need.

TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.