Results 1 to 2 of 2

Thread: Whats Wrong with this ?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Location
    London
    Posts
    7

    Whats Wrong with this ?

    Can someone please tell me whats wrong with this code, I keep getting the error that:

    Could not access 'CDO.Message' object

    VB Code:
    1. Public Function SendEmail()
    2.  
    3.         Dim oEmail As New System.Web.Mail.MailMessage()
    4.         oEmail.Body = eBody
    5.         oEmail.From = "Alert Service on Devon"
    6.         oEmail.To = "[email protected]"
    7.         oEmail.Subject = eSubject
    8.  
    9.         Dim oSendEmail As Web.Mail.SmtpMail
    10.         oSendEmail.SmtpServer = "trent"
    11.         oSendEmail.Send(oEmail)
    12.     End Function

    Thanks in Advance

  2. #2

    Thread Starter
    New Member
    Join Date
    Nov 2003
    Location
    London
    Posts
    7
    Solved it.....


    It does not like having space's in the from Address....

    Oh well...

    Paul.

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