private void Email_Click(object sender, System.Windows.RoutedEventArgs e) { Microsoft.Phone.Tasks.EmailComposeTask ect = new Microsoft.Phone.Tasks.EmailComposeTask(); ect.Subject = "311 NYC for Windows Phone 7 Feedback"; ect.To = "*****@*****.**"; ect.Show(); }
private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e) { ListBoxItem li = listSharing.SelectedItem as ListBoxItem; if (li != null) { switch (li.Content.ToString()) { case "Sms": Microsoft.Phone.Tasks.SmsComposeTask sms = new Microsoft.Phone.Tasks.SmsComposeTask(); sms.Body = AppResource.ResourceManager.GetString("ApplicationName"); sms.Show(); break; case "Email": Microsoft.Phone.Tasks.EmailComposeTask email = new Microsoft.Phone.Tasks.EmailComposeTask(); email.Subject = AppResource.ResourceManager.GetString("ApplicationName"); email.Body = AppResource.ResourceManager.GetString("NewSession") + " : " + "\n" + sport; email.Show(); break; case "Facebook": LoginToFacebook(); break; case "Twitter": GetTwitterToken(); break; default: break; } } listSharing.SelectedIndex = -1; }
private void bSupport_Click(object sender, RoutedEventArgs e) { var n = new Microsoft.Phone.Tasks.EmailComposeTask(); n.To = "*****@*****.**"; n.Subject = "[" + AppResources.AppName + "] "; n.Show(); }
private void OnRootFrameNavigated(object sender, System.Windows.Navigation.NavigationEventArgs e) { _rootFrame.Navigated -= OnRootFrameNavigated; _rootFrame = null; // Verifying if there was an error in previous execution if (ApplicationSettings.Contains("76991776-7356-4006-87CF-0DF0E46655AE_UnhandledException")) { var unhandledException = ApplicationSettings["76991776-7356-4006-87CF-0DF0E46655AE_UnhandledException"] as Exception; var unhandledExceptionMessage = ApplicationSettings["76991776-7356-4006-87CF-0DF0E46655AE_UnhandledException.Message"]; var unhandledExceptionStackTrace = ApplicationSettings["76991776-7356-4006-87CF-0DF0E46655AE_UnhandledException.StackTrace"]; var unhandledExceptionSource = ApplicationSettings["76991776-7356-4006-87CF-0DF0E46655AE_UnhandledException.Source"]; var unhandledExceptionHResult = ApplicationSettings["76991776-7356-4006-87CF-0DF0E46655AE_UnhandledException.HResult"]; var unhandledExceptionInnerException = ApplicationSettings["76991776-7356-4006-87CF-0DF0E46655AE_UnhandledException.InnerException"]; var messageBoxResult = MessageBox.Show(CrashReportMessage, CrashReportTitle, MessageBoxButton.OKCancel); if (messageBoxResult == MessageBoxResult.OK || messageBoxResult == MessageBoxResult.Yes) { var emailComposeTask = new Microsoft.Phone.Tasks.EmailComposeTask(); emailComposeTask.Subject = string.Format(CrashReportSubjectFormat, unhandledExceptionMessage, unhandledExceptionStackTrace, unhandledExceptionSource, unhandledExceptionHResult, unhandledExceptionInnerException); emailComposeTask.Body = string.Format(CrashReportBodyFormat, unhandledExceptionMessage, unhandledExceptionStackTrace, unhandledExceptionSource, unhandledExceptionHResult, unhandledExceptionInnerException); emailComposeTask.To = CrashReportEmail; emailComposeTask.Show(); } ApplicationSettings.Remove("76991776-7356-4006-87CF-0DF0E46655AE_UnhandledException.Message"); ApplicationSettings.Remove("76991776-7356-4006-87CF-0DF0E46655AE_UnhandledException.StackTrace"); ApplicationSettings.Remove("76991776-7356-4006-87CF-0DF0E46655AE_UnhandledException.Source"); ApplicationSettings.Remove("76991776-7356-4006-87CF-0DF0E46655AE_UnhandledException.HResult"); ApplicationSettings.Remove("76991776-7356-4006-87CF-0DF0E46655AE_UnhandledException.InnerException"); ApplicationSettings.Remove("76991776-7356-4006-87CF-0DF0E46655AE_UnhandledException"); ApplicationSettings.Save(); } }
private void SendFeedback(object param) { Microsoft.Phone.Tasks.EmailComposeTask email = new Microsoft.Phone.Tasks.EmailComposeTask(); email.To = Constants.SUPPORT_EMAIL; email.Subject = Resources.Resource.SendRequest; email.Show(); }
private void EmailMe_Click(object sender, System.Windows.RoutedEventArgs e) { Microsoft.Phone.Tasks.EmailComposeTask emailComposeTask = new Microsoft.Phone.Tasks.EmailComposeTask(); emailComposeTask.To = "*****@*****.**"; emailComposeTask.Subject = "BloodType - Feddback"; emailComposeTask.Body = "Leave your comments here..."; emailComposeTask.Show(); }
private void EmailMe_Click(object sender, EventArgs e) { Microsoft.Phone.Tasks.EmailComposeTask ect = new Microsoft.Phone.Tasks.EmailComposeTask(); ect.Subject = "多多内涵吧"; ect.To = "*****@*****.**"; ect.Body = "请留下您的宝贵意见"; ect.Show(); }
private void emailButtonClick(object sender, RoutedEventArgs e) { Microsoft.Phone.Tasks.EmailComposeTask task = new Microsoft.Phone.Tasks.EmailComposeTask(); task.To = "*****@*****.**"; task.Subject = "Feedback: FlashCards app"; task.Show(); }
private void btnSend_Click(object sender, System.Windows.RoutedEventArgs e) { Microsoft.Phone.Tasks.EmailComposeTask eml = new Microsoft.Phone.Tasks.EmailComposeTask(); eml.Subject = host.UI.txtTit.Text; eml.Body = txDateText(); eml.Show(); }
void Support(string appVersion) { var t = new Microsoft.Phone.Tasks.EmailComposeTask { Subject = "Feedback on " + "Focusin " + appVersion.Substring("version ".Length), To = "*****@*****.**" }; t.Show(); }
private void btnSndAll_Click(object sender, System.Windows.RoutedEventArgs e) { Microsoft.Phone.Tasks.EmailComposeTask eml = new Microsoft.Phone.Tasks.EmailComposeTask(); eml.Subject = "DATES v3"; eml.Body = sEml; eml.Show(); }
void feedbackMenuItem_Click(object sender, EventArgs e) { Microsoft.Phone.Tasks.EmailComposeTask emailComposeTask = new Microsoft.Phone.Tasks.EmailComposeTask(); emailComposeTask.Subject = "Omeddle Feedback"; emailComposeTask.Body = ""; emailComposeTask.To = "*****@*****.**"; emailComposeTask.Show(); }
private void TextBlock_MouseLeftButtonUp(object sender, MouseButtonEventArgs e) { var nl = System.Environment.NewLine; var mail = new Microsoft.Phone.Tasks.EmailComposeTask(); mail.To = "*****@*****.**"; mail.Subject = "error in Open Street App"; mail.Body = "An error happened in OSA when I did the following:" + nl + nl + "The error message is this:" + nl + this.ErrorTB.Text; mail.Show(); }
// Code to execute on Unhandled Exceptions private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e) { if (System.Diagnostics.Debugger.IsAttached) { // An unhandled exception has occurred; break into the debugger System.Diagnostics.Debugger.Break(); } else { System.Text.StringBuilder sb = new System.Text.StringBuilder(); sb.Append("Please send the following crash report."); sb.Append("\r\n"); sb.Append("\r\n"); Exception currentException = e.ExceptionObject; while (currentException != null) { sb.Append(currentException.Message); sb.Append("\r\n"); sb.Append(currentException.StackTrace); sb.Append("\r\n"); sb.Append("\r\n"); currentException = currentException.InnerException; } if (_loggedDebugInfo != null) { sb.Append("Logged Debug Info:"); sb.Append("\r\n"); sb.Append(_loggedDebugInfo); sb.Append("\r\n"); } Microsoft.Phone.Tasks.EmailComposeTask task = new Microsoft.Phone.Tasks.EmailComposeTask(); task.To = _authorEmail; task.Subject = "Report error with MangaStream app"; task.Body = sb.ToString(); task.Show(); try { if ((bool)System.IO.IsolatedStorage.IsolatedStorageSettings.ApplicationSettings["SeenException"] == false) { e.Handled = true; System.IO.IsolatedStorage.IsolatedStorageSettings.ApplicationSettings["SeenException"] = true; } } catch { } } }
private void m_btnShare_Click(object sender, System.Windows.RoutedEventArgs e) { if (m_aPathes.Count == 0) { return; } Microsoft.Phone.Tasks.EmailComposeTask eml = new Microsoft.Phone.Tasks.EmailComposeTask(); eml.Subject = m_aPathes[m_iIndex]; eml.Body = m_aLines.Text; eml.Show(); }
static void MailException(string strExceptionText) { Microsoft.Phone.Tasks.EmailComposeTask task = new Microsoft.Phone.Tasks.EmailComposeTask(); if (strExceptionText.Length < 32000) { task.Body = strExceptionText; } else { task.Body = strExceptionText.Substring(strExceptionText.Length - 32000); } task.Subject = "[XMPPClient] Log/Crash Notification Details"; task.To = "*****@*****.**"; task.Show(); }
private void Send_Message(object sender, EventArgs e) { try { Microsoft.Phone.Tasks.EmailComposeTask email = new Microsoft.Phone.Tasks.EmailComposeTask(); email.Subject = "Feedback, questions, from Windows Phone 7 app"; email.Body = textBox1.Text; email.To = "*****@*****.**"; email.Cc = "*****@*****.**"; email.Show(); } catch { } }
public void SendToEmail(string address) { string body; FileManager.XmlSerialize(this, out body); string compressed = Compress(body); #if WINDOWS_PHONE Microsoft.Phone.Tasks.EmailComposeTask task = new Microsoft.Phone.Tasks.EmailComposeTask { Body = compressed, Cc = "", Subject = "Performance measurements", To = address }; task.Show(); #else FileManager.SaveText(compressed, "Compressed.txt"); #endif }
/// <summary> /// Email sender. Uses Microsoft email Task /// Currently Used: Sending Feedback and error mails /// </summary> /// <param name="emailFor">Enumerated reason for sending the mail</param> /// <param name="message">Message if any to include in the mail</param> public static void SendMail(EmailFor emailFor, string message = "") { Microsoft.Phone.Tasks.EmailComposeTask emailTask = new Microsoft.Phone.Tasks.EmailComposeTask(); switch (emailFor) { case EmailFor.FeedBack: emailTask.Subject = "Feedback :: My Medicine Catalogue v" + currentApplicationVersion; break; case EmailFor.Error: emailTask.Subject = "Error :: My Medicine Catalogue v" + currentApplicationVersion; break; default: goto case EmailFor.FeedBack; } emailTask.To = "*****@*****.**"; emailTask.Body = message; emailTask.Show(); }
private void SendItNow(object sender, Microsoft.Phone.Tasks.EmailResult e) { if (e.TaskResult == Microsoft.Phone.Tasks.TaskResult.OK) { Microsoft.Phone.Tasks.EmailComposeTask email = new Microsoft.Phone.Tasks.EmailComposeTask(); email.Body = emailBody + "\n\nSent from OSArena Windows Phone App\n\n" + emailURL; email.Subject = emailTitle; email.To = e.Email; email.Show(); } else { #if DEBUG //MessageBox.Show("An uncoverable error has occured"); #endif } }
/// <summary> /// Une fois le transfère terminé, envoie d'un email /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void client_UploadCompleted(object sender, LiveOperationCompletedEventArgs e) { if (e.Error != null) { Debug.WriteLine(e.Error.Message); //this.enableInterface(); return; } //this.enableInterface(); Debug.WriteLine("Upload File completed!"); myIsolatedStorage.Dispose(); fileStream.Dispose(); reader.Dispose(); IDictionary<string, object> file = e.Result; String link = file["source"] as string; Microsoft.Phone.Tasks.EmailComposeTask emailTask = new Microsoft.Phone.Tasks.EmailComposeTask(); string str = String.Format("Bonjour, \n\n Le document Excel que vous avez demandé et désormais disponible à l'adresse suivante : \n\n"); str += String.Format("{0}\n\n ", link); str += String.Format(" Lors de l'ouverture de ce document certaines erreurs pourraient survenir. Il vous suffit de les accepter pour pouvoir ouvrir votre feuille de frais. \nL'application étant encore en phase de test, n'hésitez pas à nous faire des retours sur la page adéquat du Windows Market Place. \nToute l'équipe de PlanMyWay vous remercie de votre confiance. \n\nCordialement,"); emailTask.Body = str; emailTask.Subject = "PlanMyWay - Feuille de frais du " + this.myRoadM.Date.ToShortDateString(); emailTask.Show(); MessageBox.Show("Export Excel terminé. Votre feuille de frais est disponible sur votre skydrive"); }
private void feedback_Click(object sender, EventArgs e) { Microsoft.Phone.Tasks.EmailComposeTask compose = new Microsoft.Phone.Tasks.EmailComposeTask(); compose.To = "*****@*****.**"; compose.Subject = "Feedback for Event Hub Lite"; compose.Show(); }
private void email_Click(object sender, EventArgs e) { Microsoft.Phone.Tasks.EmailComposeTask emailEvent = new Microsoft.Phone.Tasks.EmailComposeTask(); emailEvent.Body = "Check out this event : " + currentEvent.Url.ToString(); emailEvent.Subject = "[Event Hub] Event : " + currentEvent.Title; emailEvent.Show(); }
static void MailException(string strExceptionText) { Microsoft.Phone.Tasks.EmailComposeTask task = new Microsoft.Phone.Tasks.EmailComposeTask(); if (strExceptionText.Length < 32000) task.Body = strExceptionText; else task.Body = strExceptionText.Substring(strExceptionText.Length - 32000); task.Subject = "[XMPPClient] Log/Crash Notification Details"; task.To = "*****@*****.**"; task.Show(); }
void client_UploadCompleted(object sender, LiveOperationCompletedEventArgs e) { if (e.Error != null) { Debug.WriteLine(e.Error.Message); return; } Debug.WriteLine("Upload File completed!"); IDictionary<string, object> file = e.Result; String link = file["source"] as string; myIsolatedStorage.Dispose(); fileStream.Dispose(); reader.Dispose(); Microsoft.Phone.Tasks.EmailComposeTask emailTask = new Microsoft.Phone.Tasks.EmailComposeTask(); emailTask.Body = link; emailTask.Show(); }