Re: Unable to create CDO.Message for Workflow application



Anoop,

This is the code I use to send a message from the Workflow Sink

It doesnt have all the configuration code you use and works fine
providing the to and from are valid

**
Set oMsg = CreateObject("CDO.Message")

oMsg.To = strTo

oMsg.From = WorkflowSession.Sender
oMsg.Subject = strSubject

oMsg.HTMLBody = "<html><body>" & strBody & "</body></html>"

oMsg.Send
**

(I use HTMLBody because it is easier to include a link.)

If the above code still gives you the same error then check you have
ADO (MDAC) installed. Sounds bizarre but CDO relies on ADO being
present. I once got your error when trying to send a message from a
server that did not have ADO.

.


Quantcast