PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Specific Post/Page Email Confirmation

s2Member Plugin. A Membership plugin for WordPress®.

Specific Post/Page Email Confirmation

Postby Jorge » June 18th, 2010, 11:55 am

First off, thanks for such an awesome plugin...

I have set up the plugin, but whenever someone purchases access to a specific page or post on my site, they get redirected to the page, but they never get an email so they can access that page again?

I did set up the Specific Post/Page Email Confirmation, the PDT auto return, and the IPN. This is also done through real purchases, not sandbox testing...

help?

Jorge
Jorge
Guest User
Guest User
 

Re: Specific Post/Page Email Confirmation

Postby Jason Caldwell » June 19th, 2010, 1:25 pm

Hi Jorge. I've just verified that this is working in the latest version of s2Member. Tested on WP 3.0 with s2Member v3.0.5. Everything looks good.

You might want to enable logging so you can see what is going on exactly. Go to :
s2Member -> PayPal Options -> Account Details, and turn on the IPN debugging/logging routines.

After running test ( or live ) transactions, look inside /wp-content/plugins/s2member-logs/paypal-ipn.log and you should find a line that says "Specific Post/Page Confirmation Email has been sent to Customer".

Please report back if you can.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Specific Post/Page Email Confirmation

Postby Jorge » June 21st, 2010, 8:27 am

Jason,

I am running s2member version 3.0.4 and just upgraded to wordpress version 3.0. I ran a live transaction but still no email.

I had the log running since the first time. There is no log for the confirmation email being sent. The only email the buyer receives is the notification of payment received from paypal, but not the email that gives them the access link?

Thanks again for helping figure this out.

Jorge
Jorge
Guest User
Guest User
 

Re: Specific Post/Page Email Confirmation

Postby Jason Caldwell » June 22nd, 2010, 12:53 am

Hi Jorge. Post your log files here if you can. I'll have a look. Either that, or please contact me directly with access to your WP Dashboard. I'll have a look for you.

For anyone else having this problem. One thing to test first, is.. can your server send mail using PHP's `mail()` function. If not, that is your problem.

I'll continue to look into this issue, but as of right now, I'm unable to reproduce this on any of our existing installations, or any other client installations. If anyone has any insight, please report back. ~Thanks.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Specific Post/Page Email Confirmation

Postby Jorge » June 22nd, 2010, 1:02 am

Jason,

You must be clairvoyant... I just got an email from PayPal saying this:

Please check your server that handles PayPal Instant Payment Notifications (IPN). IPNs sent to the following URL(s) are failing:

MyDomainName.com/?s2member_paypal_notify=1


Is this something I have to fix through hostgator? If so, what do I tell them?
Jorge
Guest User
Guest User
 

Re: Specific Post/Page Email Confirmation

Postby Jason Caldwell » June 22nd, 2010, 11:25 am

I'm assuming your IPN URL is not really:
MyDomainName.com/?s2member_paypal_notify=1

Your IPN URL should start with:
http://www.yourdomain.com/?s2member_paypal_notify=1

This is listed specifically for your installation, inside your WP Dashboard, under:
s2Member -> PayPal Options -> IPN Integration

So it's best to copy it from there, and paste it into your PayPal account. Log into PayPal, and go to:
My Profile -> Instant Payment Notification Preferences

Turn IPN reporting on, and enter your s2Member IPN URL there inside your PayPal account.

Now, if you've done all of that, and you're still getting these error reports from PayPal; I would suggest opening your IPN URL in a web browser. You should get a white screen. Nothing, nada, just an empty page. If you get something other than an empty page, please report back.

You can also get yourself a PayPal Sandbox account ( https://developer.paypal.com/ ). They have a tool inside the Sandbox that is capable of running diagnostics on your IPN URL.

If nothing works, try disabling other plugins, until you find the culprit. It sounds like something in your installation is causing the ?s2member_paypal_notify=1 URL to be invalid; or you have PHP errors somewhere in another plugin perhaps? ~Please report back if you can. ~Thanks.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Specific Post/Page Email Confirmation

Postby Jorge » June 22nd, 2010, 11:45 am

Jason,

I ran the IPN simulator through paypal's sandbox and I got this message: IPN delivery failed. HTTP error code 403: Forbidden

Jorge
Jorge
Guest User
Guest User
 

Re: Specific Post/Page Email Confirmation

Postby Jorge » June 22nd, 2010, 11:54 am

Jason,

Solved!
It was a plugin called Bad Behavior that was keeping the Email confirmations from being sent...

Thanks for all the help...

Jorge
Jorge
Guest User
Guest User
 

Re: Specific Post/Page Email Confirmation

Postby Jason Caldwell » June 22nd, 2010, 12:52 pm

Thank you VERY much for reporting back. We'll have a look at that plugin before the next release. If there is anything we can do to make s2Member/Bad Behavior play nice with each, other; we'll address it.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Specific Post/Page Email Confirmation

Postby Dr Dave » October 25th, 2010, 2:57 pm

Jason - I'm running into the same email issue.

I've got PDT, return to ty-page, protected dl link, and emails to seller and buyer from Paypal all working great!

For whatever reason, I can't seem to get the customer email that contains their dl link to show up.

Here's a copy of my paypal log-file.
(Domain, emails, and tax id changed to protect the, um, innocent. Yeah, that's the ticket, innocent;-)

Code: Select all
mysite.com/?s2member_paypal_return=1&tx=MYTAXID&st=Pending&amt=0.01&cc=USD&cm=mysite%2ecom&item_number=sp:282:72
array (
  'transaction_subject' => 'mysite.com',
  'txn_type' => 'web_accept',
  'payment_date' => '15:14:44 Oct 24, 2010 PDT',
  'last_name' => 'My Last Name',
  'residence_country' => 'US',
  'pending_reason' => 'address',
  'item_name' => 'The Product',
  'payment_gross' => '0.01',
  'mc_currency' => 'USD',
  'business' => 'me@myaddy.com',
  'payment_type' => 'instant',
  'protection_eligibility' => 'Ineligible',
  'payer_status' => 'verified',
  'tax' => '0.00',
  'payer_email' => 'customer@theiraddy.com',
  'txn_id' => 'my tax id',
  'quantity' => '1',
  'receiver_email' => 'me@myaddy.com',
  'first_name' => 'Me',
  'payer_id' => 'cust id',
  'receiver_id' => 'my id',
  'item_number' => 'sp:282:72',
  'handling_amount' => '0.00',
  'payment_status' => 'Pending',
  'shipping' => '0.00',
  'mc_gross' => '0.01',
  'custom' => 'mysite.com',
  'charset' => 'windows-1252',
  's2member_log' =>
  array (
    0 => 'Return-Data received on: Sun Oct 24, 2010 10:14:51 pm UTC',
    1 => 's2Member POST vars verified through a POST back to PayPal®.',
    2 => 's2Member originating domain ( _SERVER[HTTP_HOST] ) validated.',
    3 => 's2Member txn_type identified as (web_accept) for Specific Post/Page Access.',
    4 => 'Transient Tracking Cookie set on (web_accept) for Specific Post/Page Access.',
    5 => 'Redirecting Customer to the Specific Post/Page.',
  ),
  'hours' => '72',
  'sp_ids' => '282',
)


The re-direct shows up, but one thing I'm not seeing is a line that says "Specific Post/Page Confirmation Email has been sent to Customer"

Should that be in there somewhere as stated above?

Is it possible that because tinyurl.com is used, my ISP is blocking it? Some folks say emails using Tinyurl are automatically refused by some ISP's.

What else might be causing customers not to receive, or my system not to send?

Is there an easy way to determine whether my server cand send using PHP's `mail()` function?

Dave
User avatar
Dr Dave
Experienced User
Experienced User
 
Posts: 16
Joined: July 8, 2010

Re: Specific Post/Page Email Confirmation

Postby Jason Caldwell » October 26th, 2010, 12:57 am

Correct. You should have a line in your log file indicating when and where the Confirmation Email was sent. If that's NOT showing up in your log file ( which it's not ), then it's probably because you're missing something in your PayPal Options sub-panel. See: s2Member -> PayPal Options -> Specific Post/Page Confirmation Email. Make sure you have a Subject, Body, and at least one recipient listed there.

The default recipient is:
Code: Select all
"%%full_name%%" <%%payer_email%%>
which goes to the Customer.

How to debug the PHP mail() function:
Contact your hosting provider and ask them to verify that PHP's mail() function is operable on your server. Either that, or use the following test script to verify that your server can send email. Load this file onto your server and open it in a web browser. Be sure to change the $to address to your email.
Code: Select all
<?php
$to 
= "you@example.com";
mail($to, "Test Email", "Test Email", "From: " . $to . "\r\nContent-Type: text/plain");
?>
You should get a test email message verifying that your server is capable of sending email.

tinyURL -------------------------------------------------------------------------
I don't think tinyURL is the problem in your case. However, if you'd like to disable tinyURL, check this thread: viewtopic.php?f=4&t=268&p=1036&hilit=shrink#p1039
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Specific Post/Page Email Confirmation

Postby Dr Dave » October 27th, 2010, 12:29 am

Jason ~ I'm going to drag this out (just a bit) in order to help anyone else who might be in this position.

I ran the script you gave me to pop myself a php email. Didn't work.
Host says php email is enabled.
Double-checked the script you so graciously gave me, and pulled out the extra .com (.com.com - Sheesh! Yeah, my error.)

So, PHP email works. Great! That told me that it SHOULD work, but isn't, for some reason. (Dig deeper.)

I do have " Change WP Mail From Details" plugin activated, and considered that may be the culprit.
Nope!

I thought about asking you if you had had any experience w/that plugin, because these penny sacrifices to Paypal were driving me to the poorhouse;-) (Don't bother checking - not the plugin's fault.)

Ok. Getting closer to the punch-line here.. patience..

I checked s2member --> Paypal Options --> Paypal Specific Post, and all appeared in order.

One important little detail I failed to mention:
I placed this button on a non-wordpress - html page! (Gee, I don't suppose anyone has ever tried that, hmmm?)

Ok. Now that you've gotten that laugh out, have a little compassion, m-k?

I can think of a lot of cases where someone might want a (sales) page outside of WP, with a button leading back to WP, but so far, it doesn't work. (Yeah, yeah, sessions, and all that other geek-speak, I know;-)

Anyway, after placing the button on a test page, it works! I now have email confirmation to my customer, with the link inside that email that actually WORKS!

Yeah-freakin-who! (Now to drag my sales page (kicking and screaming) inside of WP;-/)

I really hope this does help someone else. (I can't be the ONLY one, can I?)

Dave

ps - Jason - Thanks for that little script (and this larger one, too;-)
User avatar
Dr Dave
Experienced User
Experienced User
 
Posts: 16
Joined: July 8, 2010

Re: Specific Post/Page Email Confirmation

Postby Jason Caldwell » October 27th, 2010, 2:11 am

Awesome. Thanks for posting this.

On that note.. here is a quick how-to.
How-to ( Button On HTML page or different site ):
viewtopic.php?f=4&t=104&p=432#p432
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Specific Post/Page Email Confirmation

Postby Dr Dave » October 29th, 2010, 12:19 am

Jason - Thanks for the pointers on viewtopic.php?f=4&t=104&p=432#p432

A question: When using the full button code on a non-wp page, will the customer email still get tripped?
User avatar
Dr Dave
Experienced User
Experienced User
 
Posts: 16
Joined: July 8, 2010

Re: Specific Post/Page Email Confirmation

Postby Jason Caldwell » October 29th, 2010, 1:07 am

Yes, everything ( including the Confirmation Email ) remains the same. The only thing that will NOT work on a non-WP page, is the ability for an existing Member to modify an existing Subscription. In other words, if they're not logged in at your site when they click a PayPal Modification Button, s2Member won't be capable of embedding the details it needs to identify the existing Member.

Other than that ( which is no big deal ), you're fine.
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Specific Post/Page Email Confirmation

Postby Dr Dave » October 30th, 2010, 12:25 am

Gotcha, and thanks.
User avatar
Dr Dave
Experienced User
Experienced User
 
Posts: 16
Joined: July 8, 2010

Re: Specific Post/Page Email Confirmation

Postby Dr Dave » October 31st, 2010, 3:04 pm

Small glitch (probably me;-), Jason ~

Jason Caldwell wrote:Yes, everything ( including the Confirmation Email ) remains the same. The only thing that will NOT work on a non-WP page, is the ability for an existing Member to modify an existing Subscription. In other words, if they're not logged in at your site when they click a PayPal Modification Button, s2Member won't be capable of embedding the details it needs to identify the existing Member.

Other than that ( which is no big deal ), you're fine.


The code I used outside of wp was the full button code, which didn't trigger the cust email until I pulled it back inside wp.

The code you suggested in post viewtopic.php?f=4&t=104&p=432#p432 relates to the button code for membership.

The code I had was for a product download page protected inside wp, from a sales page outside wp, so there was no "0no - 0so" statements to pull out. [Scratch head here] :?: [/Scratch head here]

I did nothing different to the code that was on the non-wp page (like create a short-code) until after I pulled it into wp and got it working.

If I try it again on the non-wp page, it will (once again) not trigger the cust email, because nothing is different other than location of the page.

I can be satisfied converting my sales pages and placing them inside WP, but I just can't pull my teeth out of an issue until I know for a fact that it will or will not work.

Where am I missing it?

Stubbornly yours...
User avatar
Dr Dave
Experienced User
Experienced User
 
Posts: 16
Joined: July 8, 2010

Re: Specific Post/Page Email Confirmation

Postby Dr Dave » October 31st, 2010, 4:29 pm

I think I may have gotten it. I'll report back when I find out for sure, either way.
User avatar
Dr Dave
Experienced User
Experienced User
 
Posts: 16
Joined: July 8, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot] and 4 guests

cron