shellexecute "mailto: [email protected]?subject=Subject of Message&[email protected]"

解决方案 »

  1.   

    你是用outlook express 还是office的outlook??
      

  2.   

    OutLook Express的执行文件msimn.exe后加参数可完成一些功能,以下是我知道的一些:
    /mailurl:mailto: 新建邮件 
     例如:path\msimn.exe /mailurl:mailto:[email protected]?subject=你好
    /eml: 打开eml格式的邮件(存在硬盘上的)
    /nws: 打开eml格式的新闻信息
    /newsurl: 阅读位于newsurl的新闻
    /outnews 新建账号向导
    /mail 设置导入信箱向导 例如:ShellExecute Me.hwnd, "open", "mailto:[email protected]", vbNullString, vbNullString, 0
      

  3.   

    http://www.applevb.com/sourcecode/outlook1.zip
      

  4.   

    Opens a client's e-mail system.Syntaxmailto:sAddress[sHeaders]Possible ValuessAddress Required. One or more valid e-mail addresses separated by a semicolon. You must use Internet-safe characters. Use %20 for the space character. 
    sHeaders Optional. One or more name-value pairs. The first pair should be prefixed by a "?" and any additional pairs should be prefixed by a "&". The name can be one of the following strings. String Description 
    subject Optional. Text to appear in the subject line of the message. 
    body Optional. Text to appear in the body of the message.  
    CC Optional. Addresses to be included in the "cc" (carbon copy) section of the message. 
    BCC Optional. Addresses to be included in the "bcc" (blind carbon copy) section of the message. 
     ResThis is available as of Microsoft® Internet Explorer 3.0 or later. For more information on the mailto protocol, see RFC 2368.
    ExampleThe following example shows a mailto URL that will prepare an e-mail message when typed into the Internet Explorer address bar.mailto:[email protected]?subject=Feedback&body=The InetSDK Site Is Superlative"The following example shows a link that will prepare an e-mail message.<A HREF="mailto:[email protected]?
        subject=Feedback&amp;
        body=The%20InetSDK%20Site%20Is%20Superlative">
        Click here to send feedback to the InetSDK.</A>
      

  5.   

    Where the following variable definitions apply:    Variable                        Field Entry
       --------------------------------------------------------------
       <to e-mail>          e-mail address to appear in the To field
       <cc mail>            e-mail address to appear in the CC field
       <bcc mail>           e-mail address to appear in the BCC field
       <subject>            text to appear in the Subject field
       <body text>          text to appear in the Body of the message