View Full Version : No email is sent!


nattyman
06-16-2004, 12:51 PM
I have been trying to get this to work for about 2 days now. My config seems to be right but all it does it write to the action.txt log. No email is sent and no other log gets written to. If I call it on the command line or in the browser I get the ok, so it is running ok.

Here are my config options:

$email = "sales\@backyardleisureproducts.com";
$basepath = "/web/backyardleisureproducts.com/cgi-bin";
$sendmail = "/usr/sbin/sendmail";
$hold_subject = "Purchase On Hold";
$hold_message = "Paypal has contacted our server notifying that your purchase is pending. This usually happens when using an e-check or other payment method other than a credit card. Once your purchase is labeled complete, you will be emailed the software and/or further information.";
$file_locking = 1;
$message = "Here are your construction plans";
@prod = (
["My File","0.01","/web/backyardleisureproducts.com/my_file.zip","my_file.zip"],
);

---------------------------------------------------------------------

Here is what I am using in my button to call the script:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="john@backyardleisureproducts.com">
<input type="hidden" name="item_name" value="My File">
<input type="hidden" name="item_number" value="1000">
<input type="hidden" name="amount" value="0.01">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="return" value="http://www.backyardleisureproducts.com/cgi-bin/paypaltest.cgi">
<input type="hidden" name="cancel_return" value="http://www.backyardleisureproducts.com/cancel.htm">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="notify_url" value="http://www.backyardleisureproducts.com/cgi-bin/paypal.cgi">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but23.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">

I am about ready to give up and try something else. Any help would be much appreciated.

Thanks

Jafo
06-16-2004, 02:11 PM
Well, the first thing I see is that the email address in the form appears to be incorrect or at least it is not the same as what you placed in the paypal script.

Second, it appears your $basepath variable is probably incorrect. I doubt that your servers path starts with /web.

nattyman
06-16-2004, 06:01 PM
Man I checked this thing over about 50 times and I still missed the email mis-match. My client had changed it and I forgot to correct it in both places.

The $basepath is correct that is where all of the domains are stored on my server.

After correcting the email address and making a few other tweeks I got it to work. Sometimes things just need a fresh set of eyes!

Thanks

dnswho
06-17-2004, 04:06 AM
Man I checked this thing over about 50 times and I still missed the email mis-match. My client had changed it and I forgot to correct it in both places.

The $basepath is correct that is where all of the domains are stored on my server.

After correcting the email address and making a few other tweeks I got it to work. Sometimes things just need a fresh set of eyes!

Thanks
I have that problem before also :)