cdo message attachments

Discussion in 'ASP General' started by Hugh Welford, Dec 15, 2004.

  1. Hugh Welford

    Hugh Welford Guest

    Hi using win XP pro and IIS5 to send asp e-mail to Society members. I am
    trying to send with an attachment using the following code:-

    Set cdoConfig = Server.CreateObject("CDO.Configuration")
    With cdoConfig.Fields
    ..Item(cdoSendUsingMethod) = cdoSendUsingPort
    ..Item(cdoSMTPServer) = "pegasus.intonet.co.uk"
    ..Update
    End With
    Set cdoMessage = Server.CreateObject("CDO.Message")
    With cdoMessage
    Set.Configuration = cdoConfig
    ..From = ""
    ..To = objrec("email")
    ..Subject = "The Andropause Society - Member " & objrec("patid")
    ..HTMLBody = session("text")
    ..AddAttachment "c:\TAS\conference 2005\TAS Special Resolution Website
    23.2.05.doc"
    ..Send
    End With
    Set cdoMessage = Nothing
    Set cdoConfig = Nothing
    end if


    The message gets set with no error, but the attachment is not attached. Any
    idea what I am doing wrong?

    Thanks Hugh
    Hugh Welford, Dec 15, 2004
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Liz Patton
    Replies:
    4
    Views:
    5,599
    Liz Patton
    Jul 17, 2004
  2. codewarrior
    Replies:
    0
    Views:
    527
    codewarrior
    May 4, 2009
  3. Peter Green
    Replies:
    0
    Views:
    638
    Peter Green
    Nov 5, 2009
  4. Naveen Jain
    Replies:
    1
    Views:
    150
    Anthony Jones
    Jul 17, 2006
  5. ThatsIT.com.au

    CDO.Message and attachments

    ThatsIT.com.au, Jan 22, 2007, in forum: ASP General
    Replies:
    0
    Views:
    140
    ThatsIT.com.au
    Jan 22, 2007
Loading...

Share This Page