murugesanks
Programmer
Hi,
I am tring to send mail with attachment using CDONTS.NewMail object.
this is code,
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"
objMyMail.AttachFile(Request.Form("mailattachment")
objMyMail.Send
Set objMyMail = Nothing
i am getting the following error
----------------------------------------------------------
HTTP 500 - Internal server error
Internet Explorer
----------------------------------------------------------
if i comment the following line,
----------------------------------------------------------
objMyMail.AttachFile(Request.Form("mailattachment")
----------------------------------------------------------
its working perfectly. can anyone tell me, whats the problem and solution for this.
thanks in advance
Murugesan.
I am tring to send mail with attachment using CDONTS.NewMail object.
this is code,
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"
objMyMail.AttachFile(Request.Form("mailattachment")
objMyMail.Send
Set objMyMail = Nothing
i am getting the following error
----------------------------------------------------------
HTTP 500 - Internal server error
Internet Explorer
----------------------------------------------------------
if i comment the following line,
----------------------------------------------------------
objMyMail.AttachFile(Request.Form("mailattachment")
----------------------------------------------------------
its working perfectly. can anyone tell me, whats the problem and solution for this.
thanks in advance
Murugesan.