各位:
   我写了一个在VS2008中发送outlook程序(项目中要用到),每次再提交发送时都会弹出安全提示框,请问有没有办法去掉提示呢?
   安全提示信息:A program is trying to access e-mail addresses you have stored in outlook)
   代码如下:
    public void CreateMail(string to, string subject, string cc, string bcc, string body, string importance)
        {
            try
            {
                Outlook.Application ap = new Microsoft.Office.Interop.Outlook.Application();
                Outlook._MailItem mailItem = ap.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem) as Outlook.MailItem;                mailItem.Subject = subject;                mailItem.CC = cc;                mailItem.BCC = bcc;                mailItem.To = to;                mailItem.Body = body;                if (importance == "low")
                {
                    mailItem.Importance = Microsoft.Office.Interop.Outlook.OlImportance.olImportanceLow;
                }
                else if (importance == "normal")
                {
                    mailItem.Importance = Microsoft.Office.Interop.Outlook.OlImportance.olImportanceNormal;
                }
                else if (importance == "high")
                {
                    mailItem.Importance = Microsoft.Office.Interop.Outlook.OlImportance.olImportanceHigh;
                }
                mailItem.Display(false);
                mailItem.Send();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
            }