I have a referral script which will automatically send out a 'you win' email everytime a person reaches a targetted amount of referrals. I can set as many different referral amounts as I want. For eg, when the person reaches 5 referrals, they win something. When they reach 10, they win something. And when they reach 20 they win something.
At the moment the script sends out winner notification emails.
My winners get free 1 month membership to my site each time they reach a level and win. To offer them this membership automatically upon winning, I need to trigger a script that will send out a special membership code so that they can use to sign up for free membership.
The script that I have to trigger looks like this:
[login to view URL]
&area=AREANAME&secret=SECRET
I need my current script to be modified so that each time someone wins, their email will be inserted in the EMAIL variable and the above script will be triggered.