Пример #1
0
        private void EmailResultCallBack(EmailRecordInfo info, string message)
        {
            recnuum++;
            Main.fm.SetStatusText(string.Format("已发送{0}封", recnuum), 0);
            SqlHelper help = new SqlHelper();
            help.Insert(info, "Logs_Data");
            if (message == "发送成功")
            {
                successnum++;
            }
            if (recnuum == sentnum)
            {

                MessageBox.Show(string.Format("共发送{0}邮件,成功{1}封,失败{2}封,请查看记录", sentnum, successnum, sentnum - successnum));
                Main.fm.SetStatusText("发送完成", 0);
            }
        }