I copied and pasted the code for the paypal documentation into my site but I am unable to receive the email that confirms it. I have tried the debug on the paypal processer and it shows that Couch is receiving the IPN. I have posted some of my code below:
This is all posted at the very top of the file with a paypal button below. Does anyone have any ideas as to why the email isn't sending?
- Code: Select all
<?php require_once( 'admin/cms.php' ); ?>
<cms:template title='Accounts' clonable='1' order='-1'>
<cms:editable name='pp_price' label='Price' desc='Amount in USD (correct upto 2 decimal points)'
maxlength='10'
search_type='decimal'
validator='non_negative_decimal'
type='text' />
<cms:paypal_processor/>
</cms:template>
<cms:paypal_processor debug='1'>
<cms:if k_paypal_success>
<cms:send_mail from='accounts@buymcaccounts.com' to=pp_payer_email subject='Thank you for your purchase!' >
Dear <cms:show pp_first_name /> <cms:show pp_last_name />,
Thank you for buying an account with the username: <b><cms:show pp_item_name /></b>.
Here are the account login details:
Email: <b>fffff</b>
Password: <b>ffeeesss</b>
Thank you,
Buy MC Accounts
<a href="http://buymcaccounts.com">buymcaccounts.com</a>
</cms:send_mail>
</cms:if>
<cms:if k_paypal_error>
<cms:set msg="ERROR: <cms:show k_paypal_error/>" />
<cms:log msg />
</cms:if>
</cms:paypal_processor>
This is all posted at the very top of the file with a paypal button below. Does anyone have any ideas as to why the email isn't sending?