Forums

ipn listener- send email copy to the customer

cornelio 03 Apr, 2017
Hi,
I would like to send to the customer copy of the email configured in ipn listener.
but where and how to insert the variable $payer_email?.

Best Regards
Max_admin 03 Apr, 2017
Hi Cornelio,

In the ipn event you can use the data returned by PayPal, you can place the correct data parameter name in the "dynamic to" box of the email action.

In order to find the name of the data parameter holding the payer email, you need to make a test email with this code inside the body:

<?php
pr($form->data);

The email should be in the ipn listener of course.

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
cornelio 03 Apr, 2017
Hi Max,

thanks for the detailed response, but I tried to put a valid email address in the Dynamic To but does not send email.

Best Rergards
Max_admin 03 Apr, 2017
Hi Cornelio,

Did you check the variable names returned from PayPal ?

You can't put an email address in the "Dynamic to", you should only use a valid data variable name.

This is one of the things which have been simplified in version 6, so you should consider building new forms in v6 instead.

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
cornelio 04 Apr, 2017
Hi Max,

You can't put an email address in the "Dynamic to", you should only use a valid data variable name.



I used this $payer_email in the "Dynamic to"
but I have not received any email.

Best Regards
Max_admin 04 Apr, 2017
Answer
1 Likes
Hi Cornelio,

Please try to use payer_email only, no $ before it, does it work ?

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
cornelio 05 Apr, 2017
1 Likes
Hi Max,

Test OK. received the two mail: admin and buyer.

Your suggestion has been a great help.

Thank you very much max

Best Regards
Cornelio
This topic is locked and no more replies can be posted.