Jump to content

Recommended Posts

Posted

I'm currently working on a project that is extremely simple:

  • [li]Take a PayPal IPN post
    [li]Complete the post-back
    [li]Generate an email based on the variables posted.

Unfortunately, this is a solo project as anyone I know who knows PHP is not available, out of town or gone crazy. Essentially, I'm stuck at one spot: it doesn't send the email from what I can tell. I've tested everything I can think of.

 

I've set the permissions to both 755 and 777. Either way, I encounter no errors that I can see. I see from my visitor log that the script is being called and returning a 200 response. Of course, (from what I know) if the script is responding with a 200 'ok' response, there will not be any errors. I have also verified that there are no errors generated. I do know the script, without my little addition, does work. I've verified this several times as I have used this rest of the script without my appended mail lines.

 

Here is the section of code in question:

>// if ok, send a confirmation email to the buyer and seller
$body = "Thank you for your purchase!\n\nPlease review the following transaction details we have received from PayPal\n\n$item_name\n\n$item_number\n\n$mc_gross\n\nSincerely\n\nAllen Olson & Co.";  

mail($payer_email, 'Thank you for your payment!', $body, 'From: webmaster@allenolsonco.com');

 

Can anyone see any direct syntax errors that my be causing the problem? I wouldn't think I would have to change any of the spacing, but could that be an issue?

 

Any help would be greatly appreciated.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...