How to create an E-Mail in Outlook and make it visible for the User

后端 未结 4 1435
情歌与酒
情歌与酒 2021-01-11 16:06

I want to create an E-Mail with a Java Application using Outlook and the OLE Client.

I searched for examples and found quite a few. They all start the same way:

4条回答
  •  梦毁少年i
    2021-01-11 16:26

    if you are using something with web, this can help you:

    
    
    
    
    

    This is an email link: Send Mail

    Note: Spaces between words should be replaced by %20 to ensure that the browser will display the text properly.

    but in a application you can start a process mailto:

    like

    System.Diagnostics.Process.Start("mailto:someone@example.com?Subject=Hello%20again&body=your%20textBody%20here")
    

    it will work with all e-mail clients

提交回复
热议问题