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 problems

Knowledge Base Lobby : uShop Support Conference : Problems with trying to Place Orders
Oct-21-17 02:49 AM EST
Original Message
mail problems
Author P Pierce on 07-06-2001 at 11:03 (EST)
I have my store almost ready to go. When I place an order tho, it does show up in the control panel, but the mail doesn't work. I didn't get a confirmation in the address I used to place the order, nor an order notification in either e-mail addresses I used. I have an UNIX server and sockets e-mail. On the order notification, I used my server e-mail as well as a hotmail account.

Please help

Also, one more question. Should I remove all of the comments from the .pl pages?
E-MAIL AUTHOR | TABLE OF CONTENTS

Table Of Contents
  RE: mail problems Bill Weiner, 2001-07-08 23:21:17 (1)
            "sendmail" JJ's Cottage, 2001-07-11 11:00:38 (2)
            Thank you P Pierce, 2001-07-12 15:42:44 (3)
                 Still cannot get email to work kepitech, 2002-05-18 13:26:51 (4)
                      RE: Still cannot get email to work Bill Weiner, 2002-05-20 05:22:36 (5)
                           still having trouble kepitech, 2002-05-20 12:39:28 (6)
                                RE: still having trouble Bill Weiner, 2002-05-21 03:56:55 (7)
                                     Still not working kepitech, 2002-06-20 03:21:49 (8)
                                          RE: Still not working Bill Weiner, 2002-06-20 04:59:12 (9)
                                               it works but it doesn't kepitech, 2002-07-01 03:44:39 (10)
                                                    RE: it works but it doesn't Bill Weiner, 2002-07-01 04:50:05 (11)
                                                         I got it Thank you! kepitech, 2002-07-01 12:30:49 (12)
                                                              RE: I got it Thank you! Bill Weiner, 2002-07-02 05:11:56 (13)
                                                                   Well not totally kepitech, 2002-07-04 17:04:56 (14)
                                                                        Email with Sockets Microburst Support Team, 2002-07-05 11:29:27 (15)

Messages In This Discussion
         1. RE: mail problems
        Author Bill Weiner on 07-08-2001 at 23:21 (EST)
In regard to the email problem, here are a couple suggestions:

1) Since you have a Unix server... it is really recommended that you use the "sendmail" email option to send email. "sendmail" is on all Unix server and pretty much always works.

2) Otherwise, if you still want to try to get the SOCKETS email option working on your Unix server, then you may have to change some of the SOCKET settings in the script. That is, open your ushop-lib.pl script and locate the following 5 lines near the top of the script:

#use Socket;
#$AF_INET = AF_INET;
#$SOCK_STREAM = SOCK_STREAM;
$AF_INET = 2;
$SOCK_STREAM = 1;

Try uncommenting the first 3 lines and commenting out the last 2 lines... by adding/removing # signs as shown below:

use Socket;
$AF_INET = AF_INET;
$SOCK_STREAM = SOCK_STREAM;
#$AF_INET = 2;
#$SOCK_STREAM = 1;

This is often necessary to get the SOCKETS email option to work on Unix servers. (But again, since you have a Unix server, I would really suggest just going with the "sendmail" email option.)


In regard to removing comments from the scripts... no, you shouldn't do that.
TABLE OF CONTENTS
                 2. "sendmail"
                Author JJ's Cottage on 07-11-2001 at 11:00 (EST)
I don't know if this will help...BUT

with my particular server it was specified in the "users manual" that the path for SENDMAIL was

/usr/sbin/sendmail -t

HOWEVER...using that only gave me grief...diagonostic said it was invalid, it didn't send to the specified email address, etc.

So...in doubt and confused I resorted to the uShop.pl default setting of

/usr/lib/sendmail

viola! It worked. Bizarre, because by normal reckoning, it shouldn't. go figure....

Don't take it a "gospel" though. I'm here today trying to find a solution for a different problem, that "shouldn't" be related, but might be....

~~JJ
TABLE OF CONTENTS
                 3. Thank you
                Author P Pierce on 07-12-2001 at 15:42 (EST)
Thank you , problem solved.
TABLE OF CONTENTS
                         4. Still cannot get email to work
                        Author kepitech on 05-18-2002 at 13:26 (EST)
When clicking to submit by credit card, or contact us, the order is placed in the Log, however there is no email being sent out.

I found this question here and i tried the first option, making the changes, that didnt work.

I checked the path and it seems to match "/usr/lib/sendmail".

I'm not sure what to do next to get email sent out.

thank you.
TABLE OF CONTENTS
                                 5. RE: Still cannot get email to work
                                Author Bill Weiner on 05-20-2002 at 05:22 (EST)
So you have a UNIX-type server and are using the SENDMAIL option to send email?

If so, and if you are sure that you path to sendmail is correct, then you may want to try removing the "-t" option as mentioned above.

To do that:

STEP 1: Make a backup of your current ushop-lib.pl script... just in case.

STEP 2: Open your current ushop-lib.pl file with any TEXT editor such as WordPad.

STEP 3: Do a search on the following line:

$mail_program = $sendmail_path . " -t";

STEP 4: Change that line to:

$mail_program = $sendmail_path;

STEP 5: Save the script... as TEXT if your editor asks... and try it out!
TABLE OF CONTENTS
                                         6. still having trouble
                                        Author kepitech on 05-20-2002 at 12:39 (EST)
When I took out the -t part of that command and pressed on "Contact Me", the following was printed out on the top of the resulting page saying that my order was sent.

ste17840... Recipient names must be specified ste17840... Recipient names must be specified ste17840... Recipient names must be specified Content-type: text/html

So then i went into the Control Panel to look at the emails to be sent to and I could not get into "Email notification". Every other tab worked except for that one.

So then i went back and re-ftp'ed the original ushop-lib.pl file. Email notification came up. I tried the process but it gave me a sendmail order. I took out the '-t' and it gave me the same error above.

I have played with the "-t" option in both ushop.pl files but have not gotten one way to work.

Still unclear what to do. I wonder if you have any other suggestions?

Thank you.
TABLE OF CONTENTS
                                                 7. RE: still having trouble
                                                Author Bill Weiner on 05-21-2002 at 03:56 (EST)
Based on the "Recipient names must be specified ste17840" error messages that you were getting... it kind of sounds like the modification to remove the "-t" may resolve the problem for you... but that you may not have a "Primary Email" address specified on the "Email Notification" control panel. Have you configured a primary email address on the "Email Notification" panel?

Also, if the "Email Notification" panel was not coming up after you made the "-t" mod... then something else must have accidentally gotten changed in the script when making that mod. Maybe try again with a fresh copy of the script.

And also, from the uShop Control Panel try pressing the "Diagnostics" button and then the "Email Test" button (which is located at the bottom of the Diagnostics output). Do you then get an email sent (and received) to your "Primary Email" address?

If that Diagnostics email test does not reveal the problem for you... send us your Diagnostics output to support@uburst.com... and we'll check out your settings.
TABLE OF CONTENTS
                                                         8. Still not working
                                                        Author kepitech on 06-20-2002 at 03:21 (EST)
I am still having the same exact problem and am not sure how to get email to actually be sent when it says it is sending email.

I have been testing sendmail with the 'Email Test' button as suggested.

I have tried the following:

ushop-lib.pl:

all of the following with one of the following two lines in here:

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

ushop.pl:

then I tried each of the following with the above two choices:

$sendmail_path = "/usr/lib/sendmail";
$sendmail_path = "/usr/lib/sendmail ";
$sendmail_path = "/usr/lib/sendmail -t";
$sendmail_path = "/usr/lib/sendmail -t ";
$sendmail_path = "/usr/lib/sendmail -f";
$sendmail_path = "/usr/lib/sendmail -f ";
$sendmail_path = "/usr/lib/sendmail -f myemail@mysite.com";
$sendmail_path = "/usr/lib/sendmail -f myemail@mysite.com ";
$sendmail_path = "/usr/lib/sendmail -t -f myemail@mysite.com";
$sendmail_path = "/usr/lib/sendmail -t -f myemail@mysite.com ";


The only way I can get the message that email has been sent is from

$sendmail_path = "/usr/lib/sendmail";

When I ask the isp for help they say use the -f option with email, but i have asked more than once and received different responses.

I really don't know what to do. What could be the reason the program thinks email is being sent but it is not? Maybe that could help me know where to pursue.

Thank you very much for your help.
TABLE OF CONTENTS
                                                                 9. RE: Still not working
                                                                Author Bill Weiner on 06-20-2002 at 04:59 (EST)
First off, it won't do any good to add the additional parameters to your "$sendmail_path" configuration question.... unless you first removed the " -t" option from the $mail_program line as described in my May 20th posting above:

$mail_program = $sendmail_path;

Also, I believe the -f option would only "override the default sender email address " ... which I can't see how that would effect the whether the email is sent or not. Furthermore, that -f email address must be known to the server... so if it isn't that could cause a problem right there. Unless they say for sure that you need to use the -f option, I wouldn't recommend using that.

And also in regard to the -f option, if you put any email addresses after that in the $sendmail_path line, you'll need to "escape" the ampersand in the email address with a backslash, such as:

myemail@mysite.com

.... because in Perl any special characters (such as the ampersand) must be "escaped" when it is used within double quotes.

Anyway, here is what I would suggest:

Step 1: Return the "$sendmail_path" to just:

$sendmail_path = "/usr/lib/sendmail";

Step 2: Keep the " -t" removed from the "$mail_program" line as described in my May 20th posting above:

$mail_program = $sendmail_path;

Step 3: Make sure that the "Primary Email Address" that you are testing with (and which is configured on the uShop Control Panel under General Setting - Email Notifications) is an email address that is known to your server.

Step 4: And test that out.

If that doesn't work, then try the SOCKETS email method, by:

Step 1: Set the "$email_method" configuration question at the top of the ushop.pl script to "SOCKETS":

$email_method = "SENDMAIL";

Step 2: Change these socket settings located near the top of the ushop-lib.pl script:

Change:

#use Socket;
#$AF_INET = AF_INET;
#$SOCK_STREAM = SOCK_STREAM;
$AF_INET = 2;
$SOCK_STREAM = 1;

To:

use Socket;
$AF_INET = AF_INET;
$SOCK_STREAM = SOCK_STREAM;
#$AF_INET = 2;
#$SOCK_STREAM = 1;

Step 3: And test that out.

If neither of the above options work, then send me your diagnostics output (to support@uburst.com) ... and I'll check out your settings.
TABLE OF CONTENTS
                                                                         10. it works but it doesn't
                                                                        Author kepitech on 07-01-2002 at 03:44 (EST)
Great news....the Diagnostics Mail Test works!!!

however, going through the whole order process and then clicking on "Contact Me", I get

"Configuration Error - Unable to connect to Socket"

Any further suggestion?

Thank you.
TABLE OF CONTENTS
                                                                                 11. RE: it works but it doesn't
                                                                                Author Bill Weiner on 07-01-2002 at 04:50 (EST)
The final step of the "Contact Me" payment process uses the EXACT SAME subroutine as the "Diagnostic Email Test" ... with the only difference being email address of the customer (the storeowner's email address will be the same).

As a test, try placing an order and specify the storeowner's email address as the customer's email address and see if you still error.

If you do, then send as a support request with your "Diagnostic Output", your uShop Control Panel Password, and the URL of your store pages so that we can see the configuration and problem ourselves.
TABLE OF CONTENTS
                                                                                         12. I got it Thank you!
                                                                                        Author kepitech on 07-01-2002 at 12:30 (EST)
I was processing the order without an email address. It seems it requires one to go through.
TABLE OF CONTENTS
                                                                                                 13. RE: I got it Thank you!
                                                                                                Author Bill Weiner on 07-02-2002 at 05:11 (EST)
Great! Glad it's working for you now.
TABLE OF CONTENTS
                                                                                                         14. Well not totally
                                                                                                        Author kepitech on 07-04-2002 at 17:04 (EST)
I can get it to work with Sockets, but not if I use an email with the domain name that the site is at.

It would be much preferable to do so. Is it possible?

Thank you very much.
TABLE OF CONTENTS
                                                                                                                 15. Email with Sockets
                                                                                                                Author Microburst Support Team on 07-05-2002 at 11:29 (EST)
If you can get it to work with sockets, it SHOULD work for any email with the domain name that the site is at. Have you run a diagnostic report?

Send it to us to take a look (support@uburst.com)
TABLE OF CONTENTS

© 2003 Microburst Technologies, Inc.