murugesanks
Programmer
Hi,
I tired like this also to send a mail with Attachment using CDONTS
<%
Set objMyMail = CreateObject("CDONTS.NewMail"
objMyMail.To = Request.Form("mailto"
objMyMail.From = Request.Form("mailfrom"
objMyMail.Subject = Request.Form("mailsubject"
objMyMail.Body = Request.Form("mailbody"
' Note Here
objMyMail.AttachFile "d:\sample.txt"
objMyMail.Send
Set objMyMail = Nothing
%>
i am using IIS in Windows 2000 server.
i am getting the following error
----------------------------------------------------------
Error Type:
(0x80004005)
Unspecified error
/muru/sample/mailCDONTS/test1.asp, line 14
----------------------------------------------------------
Line number 14 is
objMyMail.AttachFile "d:\sample.txt"
if i commet this line, its working perfectly. can anyone tell me, whats the problem and solution for this.
thanks in advance
Murugesan.
I tired like this also to send a mail with Attachment using CDONTS
<%
Set objMyMail = CreateObject("CDONTS.NewMail"
objMyMail.To = Request.Form("mailto"
objMyMail.From = Request.Form("mailfrom"
objMyMail.Subject = Request.Form("mailsubject"
objMyMail.Body = Request.Form("mailbody"
' Note Here
objMyMail.AttachFile "d:\sample.txt"
objMyMail.Send
Set objMyMail = Nothing
%>
i am using IIS in Windows 2000 server.
i am getting the following error
----------------------------------------------------------
Error Type:
(0x80004005)
Unspecified error
/muru/sample/mailCDONTS/test1.asp, line 14
----------------------------------------------------------
Line number 14 is
objMyMail.AttachFile "d:\sample.txt"
if i commet this line, its working perfectly. can anyone tell me, whats the problem and solution for this.
thanks in advance
Murugesan.