Just a quick one about the new feedback system in app. We have our browser based feedback page but when a user is actually playing the game, of course we want a way of letting them tell us how awesome it is.
Venturing into the technical details, the mechanism is simply to create a simple SMTP client which uses a dev email to send a message. An example which is written in C#:
MailMessage mail = new MailMessage();
mail.From = new MailAddress(myDevEmail);
mail.To.Add(toEmail);
mail.Subject = subject;
mail.Body = message;
SmtpClient smtpServer = new SmtpClient("smtp.gmail.com");
smtpServer.Port = 587;
smtpServer.Credentials = new System.Net.NetworkCredential(myDevEmail, "some credential") as ICredentialsByHost;
smtpServer.EnableSsl = true;
ServicePointManager.ServerCertificateValidationCallback
= delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) {
// Something
return true;
};
smtpServer.Send( mail );
This of course is powered by a simple UI to gather a users feedback and then it can be sent to toEmail
. This basic method of sending emails to us for monitoring is also used for bug and error reporting.