public void Send() { string subject = "Error Report " + Random.Range(100000, 999999); string body = string.Format("Hello\n\nMy device: {0}, {1}, Screen {2}, RAM {3} MB, CPU {4}, GPU {5} {6} MB {7}\n\nMy profile: {8} (Facebook {9}, Game Center {10}, Google Games {11})\n\nGame version: {12}\n\n{13}", SystemInfo.deviceModel, SystemInfo.operatingSystem, SG_Utils.resolution, SystemInfo.systemMemorySize, SystemInfo.processorType, SystemInfo.graphicsDeviceName, SystemInfo.graphicsMemorySize, SystemInfo.graphicsDeviceVersion, user.isId ? user.id : "-", string.IsNullOrEmpty(user.facebookId) ? "-" : user.facebookId, string.IsNullOrEmpty(user.gameCenterId) ? "-" : user.gameCenterId, string.IsNullOrEmpty(user.googleGamesId) ? "-" : user.googleGamesId, build.version, errorText.text); SG_Utils.Email(server.links.supportEmail, subject, body); Hide(); }
public void SendEmail() { if (platform == Platform.Facebook) { SG_Utils.OpenLink(server.links.contactsPage, "SiteContacts"); return; } string subject = Localization.Get("mailSubject", Random.Range(100000, 999999)); string body = Localization.Get("mailBody", SystemInfo.deviceModel, SystemInfo.operatingSystem, SG_Utils.resolution, SystemInfo.systemMemorySize, SystemInfo.processorType, SystemInfo.graphicsDeviceName, SystemInfo.graphicsMemorySize, SystemInfo.graphicsDeviceVersion, user.isId ? user.id : "-", string.IsNullOrEmpty(user.deviceId) ? "-" : user.deviceId, string.IsNullOrEmpty(user.facebookId) ? "-" : user.facebookId, string.IsNullOrEmpty(user.gameCenterId) ? "-" : user.gameCenterId, string.IsNullOrEmpty(user.googleGamesId) ? "-" : user.googleGamesId, build.version); SG_Utils.Email(server.links.supportEmail, subject, body); }