请高手给出代码
谢谢

解决方案 »

  1.   

    通过下面的VBA代码可以创建一个新邮件并发送:Sub CreateHTMLMail()
    'Creates a new e-mail item and modifies its properties    Dim olApp As Outlook.Application
        Dim objMail As Outlook.MailItem
        Set olApp = Outlook.Application
        'Create e-mail item
        Set objMail = olApp.CreateItem(olMailItem)    With objMail
           'Set body format to HTML
           .BodyFormat = olFormatHTML
           .HTMLBody = "<HTML><H2>The body of this message will appear in HTML.</H2><BODY>Please enter the message text here. </BODY></HTML>"
           .Send
        End WithEnd Sub
      

  2.   

    http://www.everythingaccess.com/tutorials.asp?ID=Outlook-Send-E-mail-Without-Security-Warning