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
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