Ejemplo n.º 1
0
        /// Ouverture de la fenêtre de rédaction de mail, préchargée avec les informations en fonction du mail à l'origine de la réponse
        private void loadMailReponse()
        {
            if (currentCompteMessagerie.isAuthenticated() & gCurrentMail != null)
            {
                inboxMode = InboxMode.Reponse;
                SIMAIL.Classes.Email.Email vEmail = new SIMAIL.Classes.Email.Email();

                // Les émetteurs (From) deviennent récepteurs (To)
                foreach (var vDestinataire in gCurrentMail.From.Mailboxes)
                {
                    cEmail_Contact vContact = new cEmail_Contact(vDestinataire.Address, vDestinataire.Name);
                    vEmail.To.Add(vContact);
                }
                vEmail.From             = currentCompteMessagerie.Login;
                vEmail.Object           = "RE : " + gCurrentMail.Subject;
                vEmail.Body.Text        = "";
                vEmail.Body.TextReponse = vEmail.getReponseHeader(gCurrentMail);

                SIMAIL.Views.Email fenEmail = new SIMAIL.Views.Email();
                // Chargement de la fenetre
                fenEmail.action = Email.Action.Reponse;
                fenEmail.currentCompteMessagerie = currentCompteMessagerie;
                vEmail.ShowFenMail(fenEmail);
            }
        }
Ejemplo n.º 2
0
        private void nouveauMail()
        {
            if (currentCompteMessagerie.isAuthenticated())
            {
                inboxMode = InboxMode.Nouveau;
                SIMAIL.Views.Email vFenEmail = new SIMAIL.Views.Email();

                vFenEmail.currentCompteMessagerie = currentCompteMessagerie;
                vFenEmail.Show();
            }
        }
Ejemplo n.º 3
0
        // Transférer un mail
        private void loadMailTransfert()
        {
            if (currentCompteMessagerie.isAuthenticated() & gCurrentMail != null)
            {
                inboxMode = InboxMode.Transfert;
                SIMAIL.Classes.Email.Email vEmail = new SIMAIL.Classes.Email.Email();

                vEmail.From             = currentCompteMessagerie.Login;
                vEmail.Object           = "TR : " + gCurrentMail.Subject;
                vEmail.Body.Text        = "";
                vEmail.Body.TextReponse = vEmail.getReponseHeader(gCurrentMail);

                SIMAIL.Views.Email fenEmail = new SIMAIL.Views.Email();
                // Chargement de la fenetre
                fenEmail.action = Email.Action.Transfert;
                fenEmail.currentCompteMessagerie = currentCompteMessagerie;
                vEmail.ShowFenMail(fenEmail);
            }
        }
Ejemplo n.º 4
0
 public void ShowFenMail(SIMAIL.Views.Email pfenMail)
 {
     pfenMail.email = this;
     pfenMail.Show();
 }