Skip to Content
0
Former Member
May 10, 2010 at 03:37 PM

SM49 on windows 2008

57 Views

Dear Sap Experts

I try to call VBscript with SM49 that sends mail and I get this Error:

MIcrosoft VBScript runtime error:

error in loading DLL: 'objEmail.Configuration.Field....

The script is:

I copy the script from: http://www.paulsadowski.com/WSH/cdo.htm

'----


Set objMessage = CreateObject("CDO.Message")

objMessage.Subject = "Example CDO Message"

objMessage.From = "mail addresss"

objMessage.To = "mail addresss"

objMessage.TextBody = "Ts is some sample message text."

'==This section provides the configuration information for the remote

SMTP server.

'==Normally you will only change the server name or IP.

objMessage.Configuration.Fields.Item _

("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

'Name or IP of Remote SMTP Server

objMessage.Configuration.Fields.Item _

("http://schemas.microsoft.com/cdo/configuration/smtpserver")

= "smtp.myserver.com"

'Server port (typically 25)

objMessage.Configuration.Fields.Item _

("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25

objMessage.Configuration.Fields.Update

'==End remote SMTP server configuration section==

objMessage.Send

'-------

The script is run good in the windows 2008 server with SAPService<SID> user but from SM49

with the command "cdcript c:\sendmail.vbs" It get the DLL Error,

P,S: on windows 2003 the script works fine from the windows and from SM49.

Please Help

Roy Dennis