cdo message attachments

H

Hugh Welford

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 = "(e-mail address removed)"
..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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

CDO.message 4
cdo.message 3
CDO Message help 1
Error in loading DLL: 'cdoConfig.Fields' 1
asp send mail cdo error 1
CDO generating duplicate e-mails 0
Read receipt with CDO 2000 2
CDO Mail Dilema 2

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top