Would you please show me how to use the Callback feature at the end of a daily tournament to send a generic congratulatory e-mail to the winner. I know it's sort of redundant because the player knows they won, but I want the player to feel they were recognized for thier accomplishment.

cuervo5150 wrote:Would you please show me how to use the Callback feature at the end of a daily tournament to send a generic congratulatory e-mail to the winner.

That would require a few hours of coding. I'll give you the outline of it:

The Tournament Finish Event will call your PHP file and include a tournament "Name" and "Number" parameter. Use the Name and the current date to retrieve the tournament results file for that tournament using the TournamentsResult command in the API. Parse through that output looking for the tournament Number. Parse some more looking for the Place1 line. Pull the player's name out of that line. Parse some more looking for the Stop line to make sure it doesn't show "(Abort)" on the end. With the player's name, call the AccountsGet command in the API and fetch the player's email address. Use the PHP mail() command to send the email.