R
Rishi
Im using the below code to send a mail from my asp form.
Set ObjMail = Server.CreateObject("Outlook.Application")
Set ObjMsg = Server.CreateObject("Outlook.MailItem")
Set ObjMsg = ObjMail.CreateItem(0)
ObjMsg.To = Trim(Request.Form("txtto"))
ObjMsg.CC = Trim(Request.Form("txtCc"))
ObjMsg.BCC = Trim(Request.Form("txtBc"))
ObjMsg.Subject = Trim(Request.Form("txtSub"))
ObjMsg.HTMLBody = strBody
ObjMsg.Send
This is giving the error:
Server object, ASP 0177 (0x80080005)
Server execution failed
/MailTest.asp, line 56
But the same type code is working in vb application.
If anybody having ideal pls help us.
Regards,
Rishi
Set ObjMail = Server.CreateObject("Outlook.Application")
Set ObjMsg = Server.CreateObject("Outlook.MailItem")
Set ObjMsg = ObjMail.CreateItem(0)
ObjMsg.To = Trim(Request.Form("txtto"))
ObjMsg.CC = Trim(Request.Form("txtCc"))
ObjMsg.BCC = Trim(Request.Form("txtBc"))
ObjMsg.Subject = Trim(Request.Form("txtSub"))
ObjMsg.HTMLBody = strBody
ObjMsg.Send
This is giving the error:
Server object, ASP 0177 (0x80080005)
Server execution failed
/MailTest.asp, line 56
But the same type code is working in vb application.
If anybody having ideal pls help us.
Regards,
Rishi