Ejemplo 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");
            }
        }
Ejemplo n.º 2
0
        /*private void btPingMailServer_Click(object sender, EventArgs e)
         * {
         *  bOnPingSuccessHideControls = false;
         *  btPingMailServer.Enabled = false;
         *  lbPingStatus.Text = "";
         *  Ping.ping_Async(tbMailServer.Text);
         * }*/

        public void updateImageWithScreenShotOfParentForm()
        {
            setScreenShoot(Screenshots.getScreenshotOfFormObjectAndItsControls(fParentForm));
            //setScreenShoot(Screenshots.getScreenshotOfFormObjectAndItsControls(btRefresh_LogViewerData));
        }