Does anyone have an example of how to send the game data by e-mail?
Ex: The points a game
I think there might be a way with AJAX or some custom plugin...
I'd be very careful about doing this, however. Most people would not want to receive such emails!
You could tell me how to do with AJAX?
In my game I need the data to be sent by email. Is already defined
As answered in the other thread, you can't send email with JS.
If you want to use Ajax, you need to have a php page on the other end receiving the call and sending a mail after that.
So I call an AJAX-php is already pre configured to send an e-mail? But as I will send the data in AJAX?
Sending an email with php should be an easy task - if you're a little familar with that language:
http://php.net/manual/en/function.mail.php
Then in C2 you can make an ajax request to the php-file. In the tutorials section is an explanation how to use the ajax-plugin. I suppose a GET-request similar as shown in the tutorial will do a good job for the first tests. <img src="smileys/smiley1.gif" border="0" align="middle">
[Edit]
..the game data by e-mail.. -> I would never ever do that, but it's possible..
[/Edit]
So.
In php okay, I'm familiar with. But how will I make a request through the data in ajax?
Develop games in your browser. Powerful, performant & highly capable.
Ajax plugin sends the data via get.. merge the vars and values in the url..
Php.net get
Got asked for an example. Here it is..
example capx (r85) (you have to change the path to your webserver)
score-php script (without the php-E-Mail-sending routine)
Have fun, Joe7 <img src="smileys/smiley2.gif" border="0" align="middle">
The program is claiming that my version is old:
The project was saved in release 85 or 84 newer.Your current release is "
The possibility exists that you save in 84?
ok.. for the old ones.. <img src="smileys/smiley2.gif" border="0" align="middle">
example for r80.2 and newer