Nice to see what you input mask looks like but it does not help to see whats going wrong with your code in any way.
Check the log file for the build application for problems.
If you do not find anything you may want to post the code that you are executing to send the mail, so that someone else then you can figure the problem out.
using System.Security.Cryptography.X509Certificates;
public class new_feedback : MonoBehaviour {
public Text error;
public Text exceptionError;
public InputField sender_email;
public InputField password;
public InputField sender_issue_body;
public static string FROM;
public static string TO = "user@gmail.com";
public static string SUBJECT;
public static string BODY;
public void Update(){
FROM = sender_email.text.ToString ();
SUBJECT = "feedback from : " + sender_email.text.ToString ();
BODY = sender_issue_body.text.ToString ();
}
public void SendingFeedback () {
try {
MailMessage mail = new MailMessage(FROM, TO, SUBJECT, BODY);
SmtpClient smtpServer = new SmtpClient("smtp.gmail.com", 587);
smtpServer.Credentials = new System.Net.NetworkCredential(sender_email.text.ToString(), password.text.ToString()) as ICredentialsByHost;
smtpServer.UseDefaultCredentials = false;
smtpServer.DeliveryMethod = SmtpDeliveryMethod.Network;
smtpServer.EnableSsl = true;
ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) {
return true;
};
error.text = "succesfully sended the feedback!";
smtpServer.Send(mail);
}
catch(Exception ex){
error.text = "you typed your email or password wrong.";
Debug.Log(ex);
}
}
}
i know it’s not a good idea… but the problem is so far… i could not send a email without password… i know it’s a weerd idea but it’s the only way to send emails.
edit : i turned off my firewall for a second… to try it out… but still not working
The normal way to handle this would be to send a request with the answer email adress of the user and the massage to your web server , that web server then creates a mail to you with the email address and massage of the user in the text of the mail.
If im the user of your app i would NEVER EVER enter my mail password.
i know that people that would not enter the password… but i dont know how i can make a smtp server… but i dont have also the money to host it… but im not familar with this sort of things.