void SendEmail()
        {
            Regex regex = new Regex(mailPattern);

            if (!regex.IsMatch(emailField))
            {
                EditorUtility.DisplayDialog("SVG Importer | Bug Report", "Email is not valid!", "Ok");
                return;
            }

            if (problemType == PROBLEM_TYPE.PleaseSpecify)
            {
                EditorUtility.DisplayDialog("SVG Importer | Bug Report", "Please specify the problem type", "Ok");
                return;
            }

            if (problemOccurrence == PROBLEM_OCCURRENCE.PleaseSpecify)
            {
                EditorUtility.DisplayDialog("SVG Importer | Bug Report", "Please specify the problem occurrence", "Ok");
                return;
            }

            lastEmail = emailField;

            string pluginVersion = "SVG Importer version: " + SVGImporterSettings.version + "\n\n";

            string systemSpecs = "System Specs:\n" +
                                 "Unity Version: " + Application.unityVersion + "\n" +
                                 "Unity Build Settings: " + EditorUserBuildSettings.activeBuildTarget.ToString() + "\n" +
                                 //"Version: "+Application.version+"\n\n" +
                                 "operating System: " + SystemInfo.operatingSystem + "\n" +
                                 "device Model: " + SystemInfo.deviceModel + "\n" +
                                 "device Name: " + SystemInfo.deviceName + "\n" +
                                 "device Type: " + SystemInfo.deviceType + "\n\n" +
                                 //"deviceUniqueIdentifier: "+SystemInfo.deviceUniqueIdentifier+"\n" +
                                 "processor Type: " + SystemInfo.processorType + "\n" +
                                 "processor Count: " + SystemInfo.processorCount + "\n" +
                                 "system Memory Size: " + SystemInfo.systemMemorySize + "\n\n" +
                                 "graphics Device Vendor: " + SystemInfo.graphicsDeviceVendor + "\n" +
                                 "graphics Device VendorID: " + SystemInfo.graphicsDeviceVendorID + "\n" +
                                 "graphics Device Name: " + SystemInfo.graphicsDeviceName + "\n" +
                                 "graphics Device ID: " + SystemInfo.graphicsDeviceID + "\n" +
                                 "graphics Device Version: " + SystemInfo.graphicsDeviceVersion + "\n" +
                                 "graphics Memory Size: " + SystemInfo.graphicsMemorySize + "\n" +
                                 "graphics Shader Level: " + SystemInfo.graphicsShaderLevel + "\n" +
                                 "max Texture Size: " + SystemInfo.maxTextureSize + "\n" +
                                 "npot Support: " + SystemInfo.npotSupport + "\n" +
                                 "supported Render Target Count: " + SystemInfo.supportedRenderTargetCount + "\n" +
                                 "supports 3D Textures: " + SystemInfo.supports3DTextures + "\n" +
                                 "supports Compute Shaders: " + SystemInfo.supportsComputeShaders + "\n" +
                                 "supports Image Effects: " + SystemInfo.supportsImageEffects + "\n" +
                                 "supports Instancing: " + SystemInfo.supportsInstancing + "\n" +
                                 "supports Render To Cubemap: " + SystemInfo.supportsRenderToCubemap + "\n" +
                                 "supports Shadows: " + SystemInfo.supportsShadows + "\n" +
                                 "supports Sparse Textures: " + SystemInfo.supportsSparseTextures + "\n";

            //"supportsLocationService: "+SystemInfo.supportsLocationService+"\n" +
            //"supportsAccelerometer: "+SystemInfo.supportsAccelerometer+"\n" +
            //"supportsGyroscope: "+SystemInfo.supportsGyroscope+"\n" +


            MailMessage mail = new MailMessage();

            mail.From = new MailAddress(emailField);
            mail.To.Add("*****@*****.**");
            mail.Subject = "Bug Report | Sender: " + emailField + " | " + titleField;
            mail.Body    = "Problem Type: " + problemType.ToString() + "\n\n" + "Problem Occurrence: " + problemOccurrence.ToString() + "\n\n" + descriptionField + "\n\n\n\n\n" + pluginVersion + systemSpecs;
            if (attachments.Count > 0)
            {
                for (int i = 0; i < attachments.Count; i++)
                {
                    if (attachments[i] == null)
                    {
                        continue;
                    }

                    mail.Attachments.Add(attachments[i]);
                }
            }

            SmtpClient smtpServer = new SmtpClient("smtp.gmail.com");

            smtpServer.Port        = 587;
            smtpServer.Credentials = new System.Net.NetworkCredential("noreply.junkmail.spam", "pAssWoRd123$") as ICredentialsByHost;
            smtpServer.EnableSsl   = true;
            ServicePointManager.ServerCertificateValidationCallback =
                delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
            { return(true); };
            try {
                smtpServer.Send(mail);
                this.Close();
                ResetToDefault();
                EditorUtility.DisplayDialog("SVG Importer | Bug Report", "Thank you for your help!", "Ok");
            } catch (SmtpException exception)
            {
                ResetToDefault();
                EditorUtility.DisplayDialog("SVG Importer | Bug Report", "Sending Bug Report failed:\n" + exception.Message, "Ok");
            }
        }