I got this perfect solution to my question
In addition to email notification, PayPal can send you transaction data (also called instant payment notifications) to a specific URL. With an instant payment notification, PayPal sends a payment notification message with an encrypted code to the specified URL for each payment you receive. Follow the instructions below to set up an instant payment alert.
- Go to the PayPal website and log in to your account.
- Click Profile at the top of the page.
- Click "Instant Payment Notification Settings" in the "Sales Preferences" column.
- Click "Change IPN Settings."
- Enter the notification URL and select "Receive IPN Messages."
- Click "Save."
You can send customized emails from instant payment data. See http://paypaltech.com/SG2 for sample scenarios.
We can customize the sample script according to our need.
source share