Пример #1
0
 /// <summary>
 /// 执行开始发送命令
 /// </summary>
 private void PlayExecuteSend()
 {
     try
     {
         status = 1;
         string htmlurl = iniCls.IniReadValue("SMTP", "htmlUrl");
         strBody = htmlurl == "" ? htmlEditor1.Text.Trim() : SendEmails.GetHtmlSource(htmlurl);//;//邮件内容
         this.btnSend.Enabled = false;
         comboBox1.Enabled    = false;
         th = new Thread(new ThreadStart(Sends));
         th.IsBackground = true;
         th.Start();
     }
     catch (Exception ex) { MessageBox.Show(ex.Message); }
 }