Page 1 of 1

Pro-form confirmation email is not received

PostPosted: June 14th, 2011, 5:29 am
by scottgould
Hi Guys

Also having a problem in that I'm not receiving the confirmation email as defined in PayPal Options.

Again, is this a feature I need to enable, or code I've broken?

Thanks for your help,
Scott

Re: Pro-form confirmation email is not received

PostPosted: June 14th, 2011, 11:53 am
by Cristián Lávaque
Hi Scott.

Under what circumstance is this the case? The email should be sent as you define it in the s2Member -> PayPal Options page. Is it when you have the success redirection problem, when the person creates an account at the same time he purchases?

Re: Pro-form confirmation email is not received

PostPosted: June 14th, 2011, 11:59 am
by scottgould
Yes.

So I am purchasing test memberships, and when I do, I don't get redirected, and I don't receive a confirmation email and receipt, as per my definition in S2Member -> PayPal Options.

As the administrator, I see the purchase come through.

Thanks Cristián

Re: Pro-form confirmation email is not received

PostPosted: June 14th, 2011, 12:00 pm
by Cristián Lávaque
If you're using the PayPal Sandbox, emails won't be sent. Or are you making real payments to test it?

Re: Pro-form confirmation email is not received

PostPosted: June 14th, 2011, 12:39 pm
by scottgould
Real purchases, for small amounts

Re: Pro-form confirmation email is not received

PostPosted: June 14th, 2011, 4:34 pm
by Cristián Lávaque
Got it.

Could you please post the shortcode you're using and the s2Member log entries for those tests? /wp-content/plugins/s2member-logs/

Re: Pro-form confirmation email is not received

PostPosted: June 14th, 2011, 4:54 pm
by scottgould
Sure my friend:

Code:
Code: Select all
[s2Member-Pro-PayPal-Form level="1" ccaps="+club" desc="Like Minds Club Membership @ £480 inc VAT, 1 year" ps="paypal"  lc="" cc="GBP" dg="0" ns="1" custom="wearelikeminds.com|club" ta="0" tp="0" tt="Y" ra="480" rp="1" rt="Y" rr="BN" rrt="" rra="2" accept="paypal,visa,mastercard,amex,discover,maestro,solo" accept_via_paypal="paypal" coupon="" accept_coupons="1" default_country_code="" captcha="0"success="http://wearelikeminds.com/registration/club-welcome" /]


However I have NO logs - the folder you specified doesn't exist. Must I turn this on?

Scott

Re: Pro-form confirmation email is not received

PostPosted: June 14th, 2011, 8:59 pm
by Cristián Lávaque
Sorry, I assumed you had it ON. Yes, please. Go here WP Admin -> s2Member -> PayPal Options -> PayPal Account Details -> Enable Logging Routines. After enabling logging, new transactions will be logged in a file in that directory.

Thanks for the shortcode. :)

Re: Pro-form confirmation email is not received

PostPosted: June 14th, 2011, 9:31 pm
by scottgould
Switched on! Am testing now

Re: Pro-form confirmation email is not received

PostPosted: June 14th, 2011, 9:36 pm
by scottgould
Here's the IPN log:
Code: Select all
WordPress® v3.1.3 :: s2Member® v110606 :: s2Member® Pro v110606
wearelikeminds.org/?s2member_paypal_notify=1
User-Agent:
array (
  'mc_gross' => '0.10',
  'protection_eligibility' => 'Ineligible',
  'item_number1' => '1:+club:1 Y',
  'payer_id' => 'PDXAUQU7YRC5L',
  'tax' => '0.00',
  'payment_date' => '19:33:58 Jun 14, 2011 PDT',
  'payment_status' => 'Completed',
  'charset' => 'windows-1252',
  'mc_shipping' => '0.00',
  'mc_handling' => '0.00',
  'first_name' => 'Faye',
  'mc_fee' => '0.10',
  'notify_version' => '3.1',
  'custom' => 'wearelikeminds.com|club',
  'payer_status' => 'unverified',
  'business' => 'paypal@wearelikeminds.com',
  'num_cart_items' => '1',
  'mc_handling1' => '0.00',
  'verify_sign' => 'AQU0e5vuZCvSg-XJploSa.sGUDlpAmyGeUUdTPET6UKGCYpY8DL2ktrL',
  'payer_email' => 'faye@scottgould.me',
  'mc_shipping1' => '0.00',
  'tax1' => '0.00',
  'txn_id' => '53D20089EB178763J',
  'payment_type' => 'instant',
  'last_name' => 'Gould',
  'item_name1' => 'Like Minds Club Membership @ £480 inc VAT, 1 year',
  'receiver_email' => 'paypal@wearelikeminds.com',
  'payment_fee' => '',
  'quantity1' => '1',
  'receiver_id' => 'EB6KFEJNSP6JS',
  'txn_type' => 'cart',
  'mc_gross_1' => '0.10',
  'mc_currency' => 'GBP',
  'residence_country' => 'GB',
  'receipt_id' => '3467-4134-8012-6312',
  'transaction_subject' => '',
  'payment_gross' => '',
  'ipn_track_id' => '.sLkXg0IirTF3k3ga4bOGA',
  's2member_log' =>
  array (
    0 => 'IPN received on: Wed Jun 15, 2011 2:34:02 am UTC',
    1 => 's2Member POST vars verified through a POST back to PayPal®.',
    2 => 'Unable to verify _SERVER[HTTP_HOST]. Possibly caused by a fraudulent request. If this error continues, please check the `custom` value in your Form and/or Button Code. It MUST always start with your domain name.',
  ),
  'subscr_gateway' => 'paypal',
)

WordPress® v3.1.3 :: s2Member® v110606 :: s2Member® Pro v110606
wearelikeminds.com/?s2member_paypal_notify=1&s2member_paypal_proxy=paypal&s2member_paypal_proxy_use=pro-emails&s2member_paypal_proxy_verification=cdca5f14009d0f6613845db69a5fc2d3&s2member_paypal_proxy_return_url=
User-Agent: WordPress/3.1.3; https://wearelikeminds.com
array (
  'txn_type' => 'web_accept',
  'txn_id' => '53D20089EB178763J',
  'custom' => 'wearelikeminds.com|club',
  'mc_gross' => '0.10',
  'mc_currency' => 'GBP',
  'tax' => '0.00',
  'payer_email' => 'faye@scottgould.me',
  'first_name' => 'Faye',
  'last_name' => 'Gould',
  'option_name1' => 'Originating Domain',
  'option_selection1' => 'wearelikeminds.com',
  'option_name2' => 'Customer IP Address',
  'option_selection2' => '92.238.126.70',
  'item_name' => 'Like Minds Club Membership @ £480 inc VAT, 1 year',
  'item_number' => '1:+club:1 Y',
  'proxy_verified' => 'paypal',
  's2member_log' =>
  array (
    0 => 'IPN received on: Wed Jun 15, 2011 2:34:06 am UTC',
    1 => 's2Member POST vars verified with a Proxy Key',
    2 => 's2Member originating domain ( _SERVER[HTTP_HOST] ) validated.',
    3 => 's2Member txn_type identified as (web_accept|subscr_signup).',
    4 => 's2Member txn_type identified as (web_accept|subscr_signup) w/o update vars.',
    5 => 'Signup Confirmation Email sent to: "Faye Gould" <faye@scottgould.me>.',
    6 => 'User exists. Handling `payment` for Subscription via (web_accept).',
    7 => 'Payment Notification URLs have been processed.',
    8 => 'Payment Notification Emails have been processed.',
    9 => 'Storing IPN signup vars now. These are associated with a User\'s account record; for future reference.',
  ),
  'subscr_gateway' => 'paypal',
  'subscr_id' => '53D20089EB178763J',
  'eotper' => '1 Y',
  'ccaps' => '+club',
  'level' => '1',
  'ip' => '92.238.126.70',
  'period1' => '0 D',
  'mc_amount1' => '0.00',
  'period3' => '1 Y',
  'mc_amount3' => '0.10',
  'initial_term' => '0 D',
  'initial' => '0.10',
  'regular' => '0.10',
  'regular_term' => '1 Y',
  'recurring' => '0',
  's2member_paypal_proxy' => 'paypal',
  's2member_paypal_proxy_use' => 'pro-emails',
  's2member_paypal_proxy_verification' => 'cdca5f14009d0f6613845db69a5fc2d3',
)





And here's the API log:
Code: Select all
WordPress® v3.1.3 :: s2Member® v110606 :: s2Member® Pro v110606
wearelikeminds.com/registration/club-hidden
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.14) Gecko/20110218 AlexaToolbar/alxf-1.54 Firefox/3.6.14
-------- Input vars: ( Wed Jun 15, 2011 2:33:55 am UTC ) --------
array (
  'METHOD' => 'DoDirectPayment',
  'PAYMENTACTION' => 'Sale',
  'EMAIL' => 'faye@scottgould.me',
  'FIRSTNAME' => 'Faye',
  'LASTNAME' => 'Gould',
  'IPADDRESS' => '92.238.126.70',
  'DESC' => 'Like Minds Club Membership @ £480 inc VAT, 1 year',
  'CUSTOM' => 'wearelikeminds.com|club',
  'CURRENCYCODE' => 'GBP',
  'ITEMAMT' => '0.10',
  'TAXAMT' => '0.00',
  'AMT' => '0.10',
  'L_QTY0' => '1',
  'L_NAME0' => 'Like Minds Club Membership @ £480 inc VAT, 1 year',
  'L_NUMBER0' => '1:+club:1 Y',
  'L_AMT0' => '0.10',
  'CREDITCARDTYPE' => 'Visa',
  'ACCT' => '************0943',
  'EXPDATE' => '062013',
  'CVV2' => '469',
  'STREET' => '68 Magdalen Street',
  'CITY' => 'Exeter',
  'STATE' => 'Devon',
  'COUNTRYCODE' => 'GB',
  'ZIP' => 'EX2 4HN',
  'VERSION' => '71.0',
  'USER' => 'paypal_api1.wearelikeminds.com',
  'PWD' => 'XKPNEU7VNENE22XB',
  'SIGNATURE' => 'AHmKsVRiISUuZ3i8LFRefYhfQl-vAyYZ5029AibTsZNCXXNEfW.H71OY',
)
-------- Output string/vars: ( Wed Jun 15, 2011 2:33:59 am UTC ) --------
TIMESTAMP=2011%2d06%2d15T02%3a33%3a59Z&CORRELATIONID=4e4cc0536539d&ACK=Success&VERSION=71%2e0&BUILD=1921397&AMT=0%2e10&CURRENCYCODE=GBP&AVSCODE=Z&CVV2MATCH=M&TRANSACTIONID=53D20089EB178763J
array (
  'TIMESTAMP' => '2011-06-15T02:33:59Z',
  'CORRELATIONID' => '4e4cc0536539d',
  'ACK' => 'Success',
  'VERSION' => '71.0',
  'BUILD' => '1921397',
  'AMT' => '0.10',
  'CURRENCYCODE' => 'GBP',
  'AVSCODE' => 'Z',
  'CVV2MATCH' => 'M',
  'TRANSACTIONID' => '53D20089EB178763J',
)


Re: Pro-form confirmation email is not received

PostPosted: June 15th, 2011, 12:37 am
by Jason Caldwell
Sorry If I'm butting in here, but I was just looking over your log entries, and I noticed that in some entries, you have wearelikeminds.org and in others you have wearelikeminds.com. Is your installation on the same domain, or how is your site structured exactly?

Also, in your Shortcode, please add a space before the success="" attribute.
Code: Select all
captcha="0"success

Should be:
Code: Select all
captcha="0" success

Re: Pro-form confirmation email is not received

PostPosted: June 15th, 2011, 3:03 am
by scottgould
Thanks Jason

1. It's .com - it's just that when we developed it early on it was .org, and though I've changed all the DB entries, it still acts as .org sometimes in the logs. It's .com, with .org as a domain alias - all one installation.

2. Thanks for spotting the shortcode - I did not see that at all - will change it.

3. Thanks for both of your help!

Re: Pro-form confirmation email is not received

PostPosted: June 15th, 2011, 11:11 am
by scottgould
Hi Guys

Success URL now works due to my silly mistake in the shortcode - thank you!

However, confirmation email receipt is still not being sent. I am using a plugin to replace php_mail with SMTP - could it be that?

Thanks again,

Scott

Re: Pro-form confirmation email is not received

PostPosted: June 15th, 2011, 8:09 pm
by Cristián Lávaque
It could. Try deactivating that other plugin temporarily and see if that fixes the email problem.

Also, if the .org comes up sometimes, then it would be good that you find where it remains so you make it fully .com and avoid silly problems because of it in the future. This thread is somewhat related viewtopic.php?f=36&t=1066

Re: Pro-form confirmation email is not received

PostPosted: June 20th, 2011, 5:38 pm
by wpweaver
This is a totally revised version of my earlier post, but with a with solution.

I do not want to run sendmail on my VPS server. Instead, I'm using a plugin called WP-Mail-SMTP, which intercepts calls to wp_mail(), and routes via whatever SMTP server you want instead (I'm using gmail.).

I just spent a long time figuring this problem out. When using the default s2member PayPal e-mail configuration, the confirmation e-mai was not being delivered. Everything looked ok. I finally added a logger to for wp_mail(), and discovered that the confirmation e-mail was being attempted, but failing.

The reason seems to be that using a SMTP replacement will fail when the address is in the form

User Name <user@example.com>

which is the default for Confirmation Recipients in s2member.

I instead simply used %%payer_email%%, and the confirmations started to get delivered. Did not try with multiple recipients, however (like you might want to send a copy to yourself?).

But this does confirm that s2member uses wp_mail(), and NOT PHP mail() as implied by earlier responses. I did in fact look at s2member code to confirm this as well (before I did all the other experiments). So any plugin that lets wp_mail() use SMTP or other mail provider should work just fine - apparently as long as you confine the address to a plain e-mail address.

Re: Pro-form confirmation email is not received

PostPosted: June 20th, 2011, 10:58 pm
by Cristián Lávaque
Thanks for sharing that! I look forward to Jason's comments on this. :)

Re: Pro-form confirmation email is not received

PostPosted: June 22nd, 2011, 1:38 am
by Jason Caldwell
Thanks for sharing this. I'm sure this will help other site owners who are trying a similar approach. You might want to contact the plugin developer who created the SMTP interface, and let them know about this too. It seems to me that the SMTP plugin should support RFC 822 for email addresses in the To: header, and parse them out when/if needed. Maybe this is a change that the plugin developer could make, so that "Name" <address> and/or multiple recipients will not cause this problem in the future.
wpweaver wrote:This is a totally revised version of my earlier post, but with a with solution.

I do not want to run sendmail on my VPS server. Instead, I'm using a plugin called WP-Mail-SMTP, which intercepts calls to wp_mail(), and routes via whatever SMTP server you want instead (I'm using gmail.).

I just spent a long time figuring this problem out. When using the default s2member PayPal e-mail configuration, the confirmation e-mai was not being delivered. Everything looked ok. I finally added a logger to for wp_mail(), and discovered that the confirmation e-mail was being attempted, but failing.

The reason seems to be that using a SMTP replacement will fail when the address is in the form

User Name <user@example.com>

which is the default for Confirmation Recipients in s2member.

I instead simply used %%payer_email%%, and the confirmations started to get delivered. Did not try with multiple recipients, however (like you might want to send a copy to yourself?).

But this does confirm that s2member uses wp_mail(), and NOT PHP mail() as implied by earlier responses. I did in fact look at s2member code to confirm this as well (before I did all the other experiments). So any plugin that lets wp_mail() use SMTP or other mail provider should work just fine - apparently as long as you confine the address to a plain e-mail address.

Re: Pro-form confirmation email is not received

PostPosted: July 14th, 2011, 6:28 am
by scottgould
Hi Guys

I'm a bit slow here - what do I change to %%payer_email%% ? I can't find a field that I'm meant to be adjusting.

Is this in S2member settings on SMTP settings?

Thanks,
Scott

Re: Pro-form confirmation email is not received

PostPosted: July 17th, 2011, 12:20 am
by Jason Caldwell
Thanks for the follow-up.
scottgould wrote:Hi Guys

I'm a bit slow here - what do I change to %%payer_email%% ? I can't find a field that I'm meant to be adjusting.

Is this in S2member settings on SMTP settings?

Thanks,
Scott

Check your list of recipients under:
s2Member -> PayPal Options -> Signup Confirmation Email
s2Member -> PayPal Options -> Specific Post/Page Confirmation Email

Re: Pro-form confirmation email is not received

PostPosted: July 17th, 2011, 1:55 pm
by scottgould
Thank you so much Jason

Much appreciated,
Scott