Results 1 to 2 of 2

Thread: VB Mail

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    7

    Exclamation VB Mail

    Hi,

    The following example descibes how to send a mail
    message using SMTP
    ' Add a reference to system.web

    Imports System.Web.Mail

    Dim m As New System.Web.Mail.MailMessage()

    With m
    .From = "[email protected]"
    .To = "myself$my.house"
    .Subject = "My SMTP Test"
    .Body = "My New Message"
    End With

    SmtpMail.SmtpServer = "MyServerName"
    SmtpMail.Send(m)

    (source : http://abstractvb.com/code.asp?F=1&P=1&A=1033)

    When I run this code I get the error message
    Could not access 'CDO.Message' object.

    I can remember that the CDO object was installed by Outlook or Outlook Express.

    Unfortunately, the company I work for uses Lotus Notes Mail.

    Does this mean that the new .net class is based on an old non-system dll ?

    Anyone else got the same problems with Lotus Notes ?

    (Btw I had written my own smtpmail class in VB6 which is completely based on a winsock connection with smtp commands)

    CU
    CE

  2. #2

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Posts
    7
    Additional Information.

    The following link provides when cdo.dll is installed

    http://support.microsoft.com/default...;EN-US;q171440

    I am develloping on a Windows 2000 client machine but
    the .NET application should run on NT4 WS with SP6 machine
    without any Outlook, Exchange or IIS

    CU
    CE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width