Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Again Problem in CDONTS

Status
Not open for further replies.

murugesanks

Programmer
Jan 25, 2001
48
US
Hi,
I tired like this also to send a mail with Attachment using CDONTS

<%
Set objMyMail = CreateObject(&quot;CDONTS.NewMail&quot;)
objMyMail.To = Request.Form(&quot;mailto&quot;)
objMyMail.From = Request.Form(&quot;mailfrom&quot;)
objMyMail.Subject = Request.Form(&quot;mailsubject&quot;)
objMyMail.Body = Request.Form(&quot;mailbody&quot;)

' Note Here

objMyMail.AttachFile &quot;d:\sample.txt&quot;

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 &quot;d:\sample.txt&quot;

if i commet this line, its working perfectly. can anyone tell me, whats the problem and solution for this.

thanks in advance

Murugesan.
 
I have just been playing round with one of my mail pages, tried many variations of the statement ie. with brackets/without brackets etc and to get the same error i had to direct the file to one that doesn't exist.

Check if &quot;d:sample.txt&quot; exists, if not create or direct your file to one thats there.

Cheers Dave

Theres nothing worse than an idea when its the only one we have!
 
hi,
&quot;d:\sample.txt&quot; is exists in my system.
-Murugesan
 
Hi

The Sample.txt needs to be on the IIS server.
If its on client PC it needs to be uploaded to the IIS server

Cheers
 
Hi,
Thanks.
the file is on Client PC only. Is anyother option is there other than uploaded to server.
-Murugesan
 
There is no other go .. U need to upload the file to the server and then send the attachment from there because it the server which is going to send the mails ...
Take a simple case of email providers .. when u need to send the attachment .. u will actually upload the file to the server .. and then it sends from there ...

Hope u got the point..
Srinu..
 
Yes, Thanks,
But i need more help.
is there any uploaded components available in IIS or third party free components. i don't want to go for shareware third party components like EZsite UpLoad, SoftArtisans, etc..

-Murugesan
 
Hi ,

I need the help on same CDONTS .
But, error i am getting is &quot; ActiveX component can not create object &quot;
error '800a01ad '

please tell me , do i need to make some configuration setting in IIS -- SMTP. I am using IIS4.0 , on Win NT

please reply
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top