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