コード例 #1
0
ファイル: AboutPage.xaml.cs プロジェクト: FaisalNahian/311NYC
 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();
 }
コード例 #2
0
        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;
        }
コード例 #3
0
ファイル: AboutPage.xaml.cs プロジェクト: ktos/sayanything
 private void bSupport_Click(object sender, RoutedEventArgs e)
 {
     var n = new Microsoft.Phone.Tasks.EmailComposeTask();
     n.To = "*****@*****.**";
     n.Subject = "[" + AppResources.AppName + "] ";
     n.Show();
 }
コード例 #4
0
 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();
     }
 }
コード例 #5
0
 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();
 }
コード例 #6
0
 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();
 }
コード例 #7
0
 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();
 }
コード例 #8
0
ファイル: AboutPage.xaml.cs プロジェクト: jacalata/FlashCards
 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();
 }
コード例 #9
0
 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();
 }
コード例 #10
0
        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();
        }
コード例 #11
0
ファイル: AboutViewModel.cs プロジェクト: fharper/Focusin
 void Support(string appVersion)
 {
     var t = new Microsoft.Phone.Tasks.EmailComposeTask
                 {
                     Subject = "Feedback on " + "Focusin " + appVersion.Substring("version ".Length),
                     To = "*****@*****.**"
                 };
     t.Show();
 }
コード例 #12
0
        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();
        }
コード例 #13
0
        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();
        }
コード例 #14
0
 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();
 }
コード例 #15
0
        // 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
                {
                }
            }
        }
コード例 #16
0
        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();
        }
コード例 #17
0
ファイル: App.xaml.cs プロジェクト: quangfox/Voip
 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();
 }
コード例 #18
0
        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 { }
        }
コード例 #19
0
ファイル: Section.cs プロジェクト: profexorgeek/FlatRedBall
        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
        }
コード例 #20
0
 /// <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();
 }
コード例 #21
0
        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
            }
        }
コード例 #22
0
        /// <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");
        }
コード例 #23
0
ファイル: Section.cs プロジェクト: vchelaru/FlatRedBall
        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

        }
コード例 #24
0
 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();
 }
コード例 #25
0
ファイル: App.xaml.cs プロジェクト: dannysu/mangastream
        // 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
                {
                }
            }
        }
コード例 #26
0
 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();
 }
コード例 #27
0
ファイル: App.xaml.cs プロジェクト: Hitchhikrr/Voip
 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();
 }
コード例 #28
0
 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();
 }