Groups | Blog | Home
all groups > inetserver asp components > october 2003 >

inetserver asp components : Sending Attachement using APS Cdonts


Sandeep P
10/29/2003 2:37:15 AM
Hi

I have a program which is used to send a mail with a
attachment using cdonts when i attach a word file and send
it ,i have the following problem while recieving the mail
i find that the attachment is open in the body and it show
all junk characters i want the attached file not to be
opened.
Please suggest me how i can i solve the above problem
Please reply to me on my email addr sandeep200179@yahoo.com
The following is the code:-

<%
towho="sandeep@200179@yahoo.com"
fromwho="Sandeep@hotmail.com"
subject="New User created"
Body="Auto Generated Mail Donot Reply"

SendMail fromwho,towho,subject,Body

sub sendmail(fromwho,towho,Subject,Body)
dim myMail
Set myMail=Server.CreateObject("CDONTS.Newmail")
myMail.From=fromwho
myMail.To=towho
myMail.Subject=Subject
myMail.Body=Body
myMail.AttachFile Server.MapPath("user_manual.doc")
myMail.Send
Set myMail=nothing
end sub
%>
Thanks
Aaron Bertrand - MVP
10/29/2003 4:26:54 PM
Use CDO.Message.
www.aspfaq.com/2025


[quoted text, click to view]

AddThis Social Bookmark Button