Thread: CDO Mail Issue

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2014
    Posts
    2
    Rep Power
    0

    CDO Mail Issue


    I have a component on my booking system which sends an asp page in html body. It was working then suddenly stopped.

    I get the error CDO.Message.1 error '80004005'

    Unspecified error

    /book/sendAniversary2.asp, line 87
    which is the .send

    Here is the code
    Set cdoConfig = CreateObject("CDO.Configuration")

    With cdoConfig.Fields
    .Item(cdoSendUsingMethod) = cdoSendUsingPort
    .Item(cdoSMTPServer) = "smtp.mtnbusiness.co.za"
    .Update
    End With

    Set cdoMessage = CreateObject("CDO.Message")

    With cdoMessage
    Set .Configuration = cdoConfig
    .From = "office@topjocks.co.za"
    .To = RS1.Fields.Item("Email").Value
    .Cc = "office@topjocks.co.za"
    .Subject = "Happy Anniversary from "&varDJ&" for "&varDate
    .CreateMHTMLBody "http://www.topjocks.co.za/book/aniversary.asp?BookingId="&RS1.Fields.Item("Ref").Value&"&Years="&Request("Years")
    .Send
    End With

    Set cdoMessage = Nothing
    Set cdoConfig = Nothing

    the rendered page fro HTML body is TJ Email

    I have another example the first works with no header image
    Taking Charge Events TEDDY BUILD : Saturday 7th June 2014

    2nd Option Doesn't
    Taking Charge Events TEDDY BUILD : Saturday 7th June 2014

    Any help would be appreciated I have spent so much time on this.
  2. #2
  3. No Profile Picture
    Grumpier old Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Jun 2003
    Posts
    14,441
    Rep Power
    4539
    I don't know the answer, but I suspect you can find a description of the error code you receive if you search the microsoft web site.
    ======
    Doug G
    ======
    Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
    --Alfred Bester
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2014
    Posts
    2
    Rep Power
    0
    Originally Posted by Doug G
    I don't know the answer, but I suspect you can find a description of the error code you receive if you search the microsoft web site.
    Thanks Doug, I'm about to throw the server out the window

IMN logo majestic logo threadwatch logo seochat tools logo