Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Weird Email Problem


Guest

Recommended Posts

I have a strange problem where I my order receipt emails are not going to the customers....This has been going on for quite a while and I just tired of looking for the problem so I thought I would throw it out there and see if anyone else has had this problem.

 

I barely have any changes in my catalog/checkout_process.php where the email stuff is implemented. I added one small contribution to this and thought it was the culprit. So I pulled it, and used the stock stuff and the emails still don't come. What makes this strange/weird is that several lines down is the area that sends the "Extra Email" to me so that I know the order was made, and IT comes to me, so EMAIL DOES WORK, it is turned on in all the right places. I checked with my provider and they want it set to sendmail not smtp, which I have...I have "Send Emails" turned on in admin configuration. When I went back to my checkout_process.php, I noticed that I had forgotten to comment out the OLD code for the "Tracking Contribution with Email" contribution I mentioned before. And since it was right above the where the "Extra Email" code that was sent (which really means I SHOULD have received 2 Extra Email, however I only received 1), I thought HMMM two very similar lines of code and the second one showed, but not the first, what if I put an extra un commented line above where the customer email is sent just to see what happens...Needless to say nothing happened...I should have received a total of 4 emails with that solution but only received the 1 Extra Email.

 

Now please don't tell me to check my Junk mail....I've done that. And I know the account works because I get a ton of mail on it AND I've have several emails that I can use as a FAKE customer, and they JUST WONT GO TO THE CUSTOMER. Does anyone have any ideas???

Here is the code:

Doesn't work

Virgin code:
tep_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

// send emails to other people
 if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

And the code after contribution installed:

//Tracking contribution begin
 tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' . EMAIL_TEXT_SUBJECT_2 , $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
//Tracking contribution end

// send emails to other people
 if (SEND_EXTRA_ORDER_EMAILS_TO != '') {
//   tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
//Tracking contribution begin
tep_mail('', SEND_EXTRA_ORDER_EMAILS_TO, STORE_NAME . ' ' . EMAIL_TEXT_SUBJECT_1 . ' ' . $insert_id . ' ' .EMAIL_TEXT_SUBJECT_2, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
//Tracking contribution end

 

Now these blotches of code appear in two places in the checkout_process...they look exactly as above.

Now you might be asking well what payment module is this crazy lady using...Well I am using PayPal IPN 2.2(which I have also added the same exact code as above to ipn.php in the ext folder) and well acutally I forgot what it was called, but it is just a check and Money order contribution. Neither will send an email to the customer, just to me as an extra...

So if you have any guesses or thoughts send me an note...Thanks a bunch!

Teresa

Link to comment
Share on other sites

This is my code in checkoutprocess.php:

 

tep_mail($order->customer['firstname'] . ' ' . $order->customer['lastname'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

It is different than yours:

 

tep_mail($order->customer['name'], $order->customer['email_address'], EMAIL_TEXT_SUBJECT, $email_order, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);

 

Try using my code and see if it fixes it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...