Attach error

C

cain

Hi,

I'm new to ASP so bare with me here.

I just coded a page and I'm getting an error on line 3, which is the
attach line. According to the references I have, this is the correct
way to do it. Am I missing something? Let me know what you think.
Any suggestions would be greatly appreciated.

Here's the code:

<%
set ObjMail = CreateObject("CDONTS.NewMail")
objMail.AttachFile "c:\test.txt"
objMail.Send "(e-mail address removed)", "(e-mail address removed)", "Test
Message 021203c", "Test with attachment"
Set ObjMail = Nothing
%>
<html>
<title>Mail Send Page/</title>
<body>
This page will send mail to an email address
</body>
</html>


TIA
Mike
 
J

Jeff Cochran

I'm new to ASP so bare with me here.

Okay, my shirt's off...
I just coded a page and I'm getting an error on line 3, which is the
attach line. According to the references I have, this is the correct
way to do it. Am I missing something? Let me know what you think.
Any suggestions would be greatly appreciated.

First suggestion - Post the error. :)

Jeff
 
C

cain

I guess that would make sense huh? What was I thinking? I'll gather
the error up again and repost. Sorry about that.
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top