Guest Posted July 21, 2005 Share Posted July 21, 2005 After an order is placed, cust gets an email like this: Subject: Order Process **** mysite.com ------------------------------------------------------ Order Number: **** Detailed Invoice: https://****.net/~mysite/account_history_info.php?order_id=**** Date Ordered: Thursday 21 July, 2005 Produc (not sure what this "Produc" is about) Date: 7/21/2005 8:59:47 AM From: UnknownSender@UnknownDomain (this is what it actually shown) Reply To: ***This is blank To: *****Cust email address goes here All that stuff is in the "to" "from" "subject" part of the email. The only thing showing in the body of the letter is my name (not store name, my actual name). In other words, the only thing showing in the body of the letter is my first and last name (e.g., John Doe). The rest is blank. When I change the order status from "pending" to "processing", etc., customer receives the letter the way it should be "to" "from" etc. is correct, and body of letter is correct "the status of your order has been updated to" etc. How can I change this so customer gets the same type of "pending" letter as they are correctly getting for "processing, shipped, etc." Further, I am curious as to how it is my name is in the body of the original email when I can't imagine my name is anywhere in the code. I looked in /catalog/admin/orders.php and order_status.php, but am not exactly sure what it is I'm looking for (I'm just beginning to learn PHP). If you could please tell me where to look and what to look for, that would be helpful. Thanks! Link to comment Share on other sites More sharing options...
moonbeam Posted July 21, 2005 Share Posted July 21, 2005 Is your store info filled out in admin>my store? The catalog actually pulls info from this page to populate the calls. Such as your e-mail and store address, etc... Moon "Woohoo, Just Havin Funnn!" Link to comment Share on other sites More sharing options...
Guest Posted July 21, 2005 Share Posted July 21, 2005 Ah, good point. Yes, it is. So, somewhere the code must point to that, I'm guessing. So now what? :-" Link to comment Share on other sites More sharing options...
moonbeam Posted July 21, 2005 Share Posted July 21, 2005 From: UnknownSender@UnknownDomain (this is what it actually shown) This I don't get, It should be declared in My Store>Email from. Have you installed any contributions lately? Moon "Woohoo, Just Havin Funnn!" Link to comment Share on other sites More sharing options...
moonbeam Posted July 21, 2005 Share Posted July 21, 2005 Have you correctly set up Admin>Configuration>E-Mail Options? Moon "Woohoo, Just Havin Funnn!" Link to comment Share on other sites More sharing options...
Guest Posted July 21, 2005 Share Posted July 21, 2005 I know, I don't get the "unknown sender" part either. The other strange thing is "Date Ordered: Thursday 21 July, 2005 Produc" It actually has "Produc" after the date. Also, in the subject, the "Detailed Invoice: https://****.net/~mysite/account_history_info.php?order_id=****" It is giving the secure server info where the *** is. It doesn't show this in the "processing" email update. I have had contributions installed, but this started happening a few days ago, long after they were installed. Link to comment Share on other sites More sharing options...
Guest Posted July 21, 2005 Share Posted July 21, 2005 Admin/config/email options were setup for me (as was most of the store awhile ago). I haven't touched these options. Here is what I have. E-Mail Transport Method: sendmail E-Mail Linefeeds: LF Use MIME HTML When Sending Emails: true Verify E-Mail Addresses Through DNS: false Send E-Mails: true Link to comment Share on other sites More sharing options...
moonbeam Posted July 21, 2005 Share Posted July 21, 2005 So you have tested the e-mail before and everything was ok? Boy, I will have to keep thinking on this one... Vger is good with this kind of stuff, Hope she see's this. Moon BTW I have authorized your link, I will submit a reciprical later tonight. "Woohoo, Just Havin Funnn!" Link to comment Share on other sites More sharing options...
Guest Posted July 21, 2005 Share Posted July 21, 2005 Thanks so much for trying and for the suggestions. Thanks also for the link. Look forward to receiving your reciprocal info. Yes, I tested several times in the past and correct emails were generated. Then, a customer sent me a copy of "strange" email the store sent him the other day, so that's how I found out something was up. I think I might have found the culprit. Not knowing PHP, I'm not sure, but it looks to me like there is some extra stuff here. This is from catalog/checkout_process. I had attempted to install a contribution of Jared's several months ago and ran into problems with it. I thought I put everything back to the way it was, but, being a total newb at that point, I probably didn't. Since my store was originally set up for me, I had no idea if other contributions were installed when I tried to install hers, and we decided that it was probably related to that. Anyway, here is the part that looks "wrong" to me, starting with the two lines of }. $email_order .= "\n" . EMAIL_TEXT_BILLING_ADDRESS . "\n" . EMAIL_SEPARATOR . "\n" . tep_address_label($customer_id, $billto, 0, '', "\n") . "\n\n"; if (is_object($$payment)) { $email_order .= EMAIL_TEXT_PAYMENT_METHOD . "\n" . EMAIL_SEPARATOR . "\n"; $payment_class = $$payment; $email_order .= $payment_class->title . "\n\n"; if ($payment_class->email_footer) { $email_order .= $payment_class->email_footer . "\n\n"; } } // tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT . ' ' . $insert_id . ' ' . $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); $customer_notified = '1';// Include OSC-AFFILIATE require(DIR_WS_INCLUDES . 'affiliate_checkout_process.php'); // load the after_process function from the payment modules $payment_modules->after_process(); $cart->reset(true); Anything here look suspect? Of course there are a a ton of lines of code above what I put...I just picked a the code directly above where I think the problem might be. Thanks. Link to comment Share on other sites More sharing options...
moonbeam Posted July 21, 2005 Share Posted July 21, 2005 I see osc affiliate call... Compare your file with an original copy of the file. Its real hard to tell. Screwing with the code could mess with unknown contributions. Moon Hopfully someone who knows what they are doing will eventually see this and lend us a hand.lol "Woohoo, Just Havin Funnn!" Link to comment Share on other sites More sharing options...
Guest Posted July 21, 2005 Share Posted July 21, 2005 Yes, I know what you mean about changing code. That's why I try not to mess with it. Unfortunately, the store was setup for me, I have no "original" files. I have no idea what that affiliate stuff is, either. I've never had any affiliates so I don't know when, where, or how that got there. GRRRRRRRR! The problem is, the original emails can't go out looking the way they do. This has to get changed, I just have no idea how to do it. Ugh! I'll tell you what I have learned for sure... that "a little bit of knowledge (which is what I have) can be dangerous." Thanks again for trying. Link to comment Share on other sites More sharing options...
moonbeam Posted July 21, 2005 Share Posted July 21, 2005 I would do this: Make a copy of checkout_process.php. Overwrite it with a fresh copy of the checkout_process.php from my local copy of the OsCommerce zip. Test it out, If it works...great. If it don't reload the copy I made in the first step and pray someone can help me. Just an Idea, Moon "Woohoo, Just Havin Funnn!" Link to comment Share on other sites More sharing options...
Guest Posted July 21, 2005 Share Posted July 21, 2005 That's a good idea, which I wouldn't have thought of. Definitely worth a try. Thanks! Link to comment Share on other sites More sharing options...
Guest Posted July 21, 2005 Share Posted July 21, 2005 That worked! Thanks for "hanging in there" with me on this one. I really appreciate it. Have a great day. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.