Hello my friends!
I am making a quiz game so i want someone to can send me their questions for the game ad i will add them into the game so there is my script using UnityEngine;using System.Collections;using System;using System.Net; - Pastebin.com
So it is working perfectly on my PC but on the android it is not working
What is wrong ?
Thanks for tha atention
belongs to the android forum section
btw sending email like that hidden is not allowed on all mobile platforms. You must invoke the platform email client and allow user to send it or not. Else you need to use own server to collect the answer and have subsystem there to send.
That is bad i still don’t know much about servers, databases but i think it is time to learn
You don’t have to learn databases. You simply need a cheap hosting account that supports PHP and then use something similar to the following (my PHP is rusty, but this should work).
<?php
mail($_GET['address'], $_GET['subject'], wordwrap($_GET['message'], 70));
?>
You’d use it like so.
http://www.address.com/script.php?address=someone@example.com&subject=whatever&message=blah
Documentation reference links below.
Thanks mate but this php is scaring me can you do it with JS ?
Yes, but PHP is far more widespread and you’re likely to find cheaper hosting services for it than JS. Things may have changed since I last looked though so you’ll want to dig around. Here is the list of server-side JavaScript implementations.
https://en.wikipedia.org/wiki/Comparison_of_server-side_JavaScript_solutions
SMTP should work on Android client. Have you tried to build App with .net 2.0 instead of .net 2.0 subset?