Пример #1
0
        /// <summary>
        /// 
        /// </summary>
        private void Transfer()
        {
            this.entryID = this.mailItem.EntryID;
            //this.addin.CloseInspector();
            options.Add("SenderMail", this.mailItem.SendUsingAccount.SmtpAddress ?? "Unknown");
            options.Add("Subject", this.mailItem.Subject ?? "");
            options.Add("Body", this.mailItem.Body);
            string[] strArray = new string[this.mailItem.Recipients.Count];
            for (int n = 0; n < this.mailItem.Recipients.Count; n++) {
                strArray[n] = this.mailItem.Recipients[n + 1].Address;
            }
            options.Add("Recipients", string.Join(";", strArray));

            transferForm = new TransferForm(filesToTransmit, options, this.TransmitDone);
            transferForm.StartTransfer();

            //Progress progress = new Progress(loginManager, this.completeFilesToSend, this.foldersToSend, parameters);
            //progress.Transport.OnBluewhaleDone += new Transport.BluewhaleDoneHandler(this.BluewhaleDoneHandler);
            //progress.Send();
        }