osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

paypal ipn - store email not sent, orders dont show up

This is a discussion on paypal ipn - store email not sent, orders dont show up within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hi I've been struggling with this for the past 3 days, and now is the time for me to recruit ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 12-08-2004, 01:40 PM
New Member
 
Join Date: Sep 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pram0310
Default paypal ipn - store email not sent, orders dont show up

Hi

I've been struggling with this for the past 3 days, and now is the time for me to recruit you all Pls pls help.

A site I installed is having these problems:
When an order goes through, the customer and seller both get Paypal notifications, there are orders in the database, but no email gets sent out from the store. The order also does not show up in the customer's order history.

Going through the posts herethis problem seems to happen an awful lot)
1) I first thought it was because the email specified in Modules -> PAyment -> Paypal was a non-Paypal verified id, but changing that didn't help.
2) I had the IPN URL set to none in Paypal, that didn't help either.
3) I read something about cUrl but also read that it was for recurring payments and I shouldn't bother.
4) I checked the database and found that for all the orders that order emails never got sent have the payment_method as blanks, but for the ones that the order emails get sent have payment method set to COD, or Web Makers card and so on. Could this be causing any problems, and how do I have the payment mode set to Paypal?

Thanks guys, pls help with anything you can, even if you think it might only be incidental.....
pram0310
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 12-09-2004, 03:48 AM
New Member
 
Join Date: Sep 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pram0310
Default

Additional problems I'm encountering with this site:

Mails aren't getting sent from the admin section of the store: no welcome emails, gift vouchers or product notifications, or Send Email in Tools. Emails sent from Cpanel arrive so it is a store issue.

Pls help guys, I'm having bad osCommerce dreams these days
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 12-09-2004, 09:51 PM
New Member
 
Join Date: Sep 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pram0310
Default

Update: I reinstalled the database and set my Paypal Auto-return to 0, and that helped.

Some store emails are still not sending:
I tested Gift voucher email a non-yahoo email and to yahoo ones. The non-yahoo one came, but the yahoo ones did not. The messages in admin said Email sent.

Tell a Friend from the store, Prod Notifications, and Send Email within Admin did not arrive for any email id.

Also still don't get store email after purchasing product.

Wondering what's going on??? Can anyone let me know what the permissions for these files need to be for them to work (though another site of mine has these set to 644 and they work fine)?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 12-10-2004, 09:07 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

You have server level issues for sure. I would check your server settings. Make sure your mail server allows sending from 'nobody' and also make sure it is not trying to verify the senders address.

Think about it, the code in osCMax is the same, so it is most likely your server settings causing the mail to fail. I would be looking in the mail logs on the server to see what is going on.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 12-11-2004, 01:50 AM
New Member
 
Join Date: Sep 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pram0310
Default

Msasek, I would agree with you, except - mails to yahoo are getting sent from the admin email account through cPanel. It's only from the store and admin that they're not going through, so I thought that might rule out server issues.

The hosting company said there's some kind of switch which can make sure that mail goes into yahoo, msn etc. Are you aware of any? I'm assuming they're talking about some kind of switch-case addition to code.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 12-11-2004, 02:45 AM
New Member
 
Join Date: Sep 2004
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
pram0310
Default

Solved!!! It was a small change to be done to the mail() function in osCommerce files. Apparently a fifth parameter is needed to include additional info and without it mails to yahoo etc don't go through.

Here's where the solution was listed:
http://forums.oscommerce.com/index.p...p;#entry428438

I'm repeating it here....
-------------------------------------------------------------------------------------
Modify each instance of the mail() command to include the fifth paramater. Be very careful with the parentheses -- there should only be one parenthesis at the end of the command.
Code:
if (EMAIL_TRANSPORT == 'smtp') {
return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers));
} else {
return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers));
}
}
to
Code:
if (EMAIL_TRANSPORT == 'smtp') {
return mail($to_addr, $subject, $this->output, 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers),'-f' . $from_addr);
} else {
return mail($to, $subject, $this->output, 'From: '.$from.$this->lf.implode($this->lf, $this->headers).$this->lf.implode($this->lf, $xtra_headers),'-f' . $from_addr);
}
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 12-11-2004, 08:02 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,329
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Yes, it looks like it was a mail server config issue after all. Glad you have sorted it out. Hopefully others will benefit from your solution.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Need Help URGENT store is not processing orders correctly Redeye_Joe osCMax v2 Installation issues 2 02-08-2006 06:31 PM
Customers Orders no longer show heaven osCMax v2 Installation issues 3 12-21-2005 03:37 PM
2CO Orders Never Show Up in OSCommerce System dessel osCommerce 2.2 Modification Help 1 08-09-2004 10:38 PM
Problem with orders that have been updated to show delivered dolanboy osCMax v1.7 Discussion 0 05-13-2004 03:14 AM
Cant get my zone in My Store to show up saje osCommerce 2.2 Modification Help 0 12-18-2003 02:22 AM


All times are GMT -8. The time now is 09:23 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax