Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_cdo thread: I am having a problem sending attachments


Message #1 by "satish kumar Renugopal" <satishkumar12@r...> on 28 Feb 2001 11:49:02 -0000
Hii



I am trying to send some attachment using

CDONTS.newmail component but i am getting

errors at the .AttacFile line

if i comment the line the bellow source

code works out well..



Can somebody help me out..



thanks

Satish.



the source code goes here



<% 

strbody=" My test message  My test message  My test message  My test message "

Set objMsg = Server.CreateObject("CDONTS.NewMail")

With objMsg

   .To ="satishkumar12@r..."

   .From ="abc@a..."

   .Subject =" My test message "

   .MailFormat = CdoMailFormatMime

   .BodyFormat = CdoBodyFormatHTML

   .AttachFile("D:/satish/test/test.txt","test.txt",0)

   .Body = strBody

   .Send

End With

Set objMsg = nothing

%>






  Return to Index