How to encode a attched file using CDONTS in asp??

Hi
I am getting an error..when i am sendig an attachment using CDONTS class
in ASP it's working fine..bt when i view the attached file that was in encoding format..so i am unable to read that file..pls help me if anybody have idea abt encoding the text.......
Thanks
Gummadilli
gummadilli@yahoo.com


here is my code
---------------
<%
Dim MyBody2
Dim MyCDONTSMail3
%>

<%
Set MyCDONTSMail3 = CreateObject("CDONTS.NewMail")
MyCDONTSMail3.From= "anandg99@yahoo.com"
MyCDONTSMail3.To= "gummadi009@yahoo.com"
MyCDONTSMail3.Cc="gummadilli@yahoo.com"
MyCDONTSMail3.Subject="This is a Test"

MyCDONTSMail3.AttachFile Server.MapPath("/somedirectory/bla.txt")
' or you could specify the path exactly if you knew it like below
'MyCDONTSMail3.AttachFile ("C:inetpubwwwrootsomedirectoryla.txt")

MyBody2 = "Thank you for ordering that stuff" & vbCrLf
MyBody2 = MyBody2 & "We appretiate your business" & vbCrLf
MyBody2 = MyBody2 & "Your stuff will arrive within 7 business days"
MyCDONTSMail3.Body= MyBody2
MyCDONTSMail3.Send
set MyCDONTSMail3=nothing
%>
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories