ASP MAIL

They have: 89 posts

Joined: Sep 1999

Maybe someone can tell me whats wrong with this. I am trying to send mail with an attachment but I keep getting this error:

Microsoft VBScript runtime error '800a01b6'

Object doesn't support this property or method: 'AttachFile'

I can send mail with any other properties set except for this one. I have a feeling it may be related to how the smtp service is set up on the server, but who knows?

Here is the code

<%
Dim objCDO
Set objCDO = Server.CreateObject("CDONTS.NewMail")
objCDO.To = "[email protected]"
objCDO.From = "[email protected]"
objCDO.Subject = "My Resume"
objCDO.Body = "Hello Blah. Here is a copy of my resume"
objCDO.Importance = 2
objCDO.AttachFile = "c:\resume.doc"
objCDO.Send
Set objCDO = Nothing
%>

They have: 89 posts

Joined: Sep 1999

OK.

Well here is another question.
Does anyone know how to make text bold with VBscript? I am talking about having the output be bold...probably with ascii or ansi codes somehow..but if there is a way, I can't figure it out. Thanks in advance.

They have: 44 posts

Joined: Jul 1999

my guess...
you have a f***ed up dll...
i don't see any problam with that...
try to that in a diffrent server...

about the bold - sorry, don't hava a clue

------------------
I bet you never been in this site before...
Deja~vu

I bet you never been in this site before...
Deja~vu

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.