Esempio n. 1
0
        public void sendEmailToO2Support(string subject, string text, bool sendSync)
        {
            sendMessageToolStripMenuItem1.Text = "Sending email....";
            try
            {
                var screenShotToSend = new PictureBox
                {
                    BackgroundImage =
                        Screenshots.getScreenshotOfFormObjectAndItsControls(this)
                };
                DI.log.debug("Sending email to O2 Support with: " + text);
                Mail.sendMail(PublicDI.sEmailHost, "*****@*****.**",
                              PublicDI.sEmailToSendBugReportsTo, "",
                              "Email from O2 User - " + subject,
                              Mail.getUserDetailsAsEmailFormat() + Environment.NewLine + text,
                              DebugMsg.createAttachmentsForRemoteSupport(DebugMsg.getFirstRtbObject(), screenShotToSend),
                              sendSync, emailMessageSent);

                //
            }
            catch (Exception ex)
            {
                DI.log.ex(ex, "in sendEmailToO2Support");
                DI.log.error(
                    "Could not send support email, please ensure that this o2 module is connected to the Internet");
            }
        }
Esempio n. 2
0
 public void updateRichTextBoxWithLogViewer()
 {
     setRichTextBoxContents(DebugMsg.getFirstRtbObject());
 }