title: Unity 3D - User is filling in an survey and then automatically send an email
body: <p>In Unity 3D I want as the title says: A user is filling in an survey and then automatically send an email. I use Unity 3D.
  I already have this c# script but I want the user of my game fill this in.</p>
  
  <p>Script:</p>
  
  <pre><code>using System.Net;
  using System.Net.Mail;
  
  using UnityEngine;
  
  public class SendMail : MonoBehaviour {
      public string sender = "me@mymailaccount.com";
      public string receiver = "me@mymailaccount.com";
      public string smtpPassword = "mysmtppassword";
      public string smtpHost = "mail.mymailacount.com";
  
      // Use this for initialization
      private void Start() {
          using (var mail = new MailMessage {
              From = new MailAddress(sender),
              Subject = "test subject",
              Body = "Hello there!"
          }) {
              mail.To.Add(receiver);
  
              var smtpServer = new SmtpClient(smtpHost) {
                  Port = 25,
                  Credentials = (ICredentialsByHost)new NetworkCredential(sender, smtpPassword)
              };
              ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
              smtpServer.Send(mail);
          }
      }
  }
  </code></pre>