www.uburst.com www.uburst.com

"Mail notification not going through"

Go back to the LobbyClick here to Go Back to Main ListingClick here to see helpClick here to Search the Forum

CGI Script Related Problems
Forum Type: Public
Moderator: edmunds
Time Zone: EST
Printer Friendly Format
Original Message
 
"Mail notification not going through"
Posted by Steve Brinegar on Dec-02-99 at 09:41 AM (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.

Click to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents

 Table of Contents

mail not working, edmunds, Dec-02-99, (1)

 

 
Click here to goto Click here to goto the Lobby
Messages in this discussion
 
1 . "mail not working"
Posted by edmunds on Dec-02-99 at 07:31 PM (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.

Remove this Message: Administrator and Moderator onlyClick to Send Alert Message to the Administrator Click to edit this messageClick to EMail Click here to reply to this messageClick here to reply to this message with quotesClick to goto the Table of Contents


Archive This Thread: Admin and Moderator OnlyRemove This Thread: Admin and Moderator Only
Click here to goto Click here to goto the Lobby

 

 

 

 

 

 

 

 

 

 

 

 
Questions or problems regarding this bulletin board should be directed to Webmaster
©1997-1999 by DCScripts. All rights reserved.