Q: Hello
I want to send HTML Email from asp page.
I tried using both the mail object(i.e. CDONTS as well as CDOSYS) for sending mail, but it is giving
following error on server.
CDO.Message.1 error '80040605' Unknown Error
On localhost it is working fine.
Kindly have a look at following code and please help us to solve the problem
Dim objMail
dim str
str = "Mail Test Body"
Set objMail = Server.CreateObject("CDO.Message")
objMail.To = "goutam@panaceatek.com"
objMail.From = "sachin@panaceatek.com"
objMail.Subject = "Mail Test"
objMail.HTMLBody = str
objMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
="localhost"
objMail.Configuration.Fields.Update
objMail.Send
Set objMail = nothing
also sending with plain text is working fine.I have problem with only HTML Email
Kindly provide solution for my problem.
Regards
Sachin