Trying to Programmatically Create & Open a new Outlook Email

后端 未结 3 1871
你的背包
你的背包 2021-01-01 22:58

I have a winforms application and I am trying to create a method that will create and open a new Outlook Email. So far I have

private void CreateOutlookEmai         


        
3条回答
  •  爱一瞬间的悲伤
    2021-01-01 23:56

    In my experience Office.Interop can be troublesome and simply kicking off Outlook with the appropriate arguments may represent a simpler and more portable option:

    System.Diagnostics.Process.Start("C:\\Program Files (x86)\\Microsoft Office\\Office12\\OUTLOOK.EXE", "/c ipm.note /m name@address.com"));
    

    Outlook command line switches give you many more options with numerous sources of info (try http://www.outlook-tips.net/how-to/using-outlook-command-lines)

提交回复
热议问题