Results 1 to 7 of 7

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 ...

      
  1. #1
    New Member
    Join Date
    Sep 2004
    Posts
    26
    Rep Power
    0


    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

  2. #2
    New Member
    Join Date
    Sep 2004
    Posts
    26
    Rep Power
    0


    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

  3. #3
    New Member
    Join Date
    Sep 2004
    Posts
    26
    Rep Power
    0


    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)?

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    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 installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    New Member
    Join Date
    Sep 2004
    Posts
    26
    Rep Power
    0


    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.

  6. #6
    New Member
    Join Date
    Sep 2004
    Posts
    26
    Rep Power
    0


    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);
    }
    }

  7. #7
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    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 installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •