HAve you tried to run it using LateBinding instead and remove the refrence to CDO?
JR
Code:
Public Sub SendEMail(SendTo As String, eBody As String, eSubject As Variant)
Dim iCfg As Object
Dim iMsg As Object
Set iCfg = CreateObject("CDO.Configuration")
Set iMsg = CreateObject("CDO.Message")
With iCfg.Fields
.Item("[URL]http://schemas.microsoft.com/cdo/configuration/sendusing[/URL]") = 2
.Item("[URL]http://schemas.microsoft.com/cdo/configuration/smtpserverport[/URL]") = 25
.Item("[URL]http://schemas.microsoft.com/cdo/configuration/smtpserver[/URL]") = "smtp.server.com"
.Update
End With
With iMsg
.Configuration = iCfg
.Subject = eSubject
.To = SendTo
.HTMLbody = eBody
.send
End With
Set iMsg = Nothing
Set iCfg = Nothing
End Sub
JR