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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi I've been struggling with this for the past 3 days, and now is the time for me to recruit you all 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 here 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 |
|
#2
| |||
| |||
| 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 |
|
#3
| |||
| |||
| 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)? |
|
#4
| ||||
| ||||
| 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
|
|
#5
| |||
| |||
| 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. |
|
#6
| |||
| |||
| 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));
}
}
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);
}
}
|
|
#7
| ||||
| ||||
| 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
|
| Thread Tools | |
| |
| ||||
| 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 |