cancel
Showing results for 
Search instead for 
Did you mean: 

SM49 on windows 2008

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

No the note is not helped.

Former Member
0 Kudos

Hey Royi,

Hope this is the solution to your problem... and let us know if it worked... !!

Note 684106 - Microsoft runtime DLLs

markus_doehr2
Active Contributor
0 Kudos

Not a solution for your problem but just a proposal: an easier program that is "cross Windows" versions is 'blat':

http://www.blat.net/

You could even be easier by using an ABAP function module and use the normal techniques (SCOT) to send the mail out.

Markus

Former Member
0 Kudos

Dear Royi,

Its quite possible that you are using a customized VB application for Windows 2003 Server and it worked fine on it from OS as well as from SAP level but I feel as you are saying its working ok with Windows if you are kicking it off from OS level SAP<service>SID and when you start with SM49 it says some DLL is missing ... I feel it need to be recompiled from Wind 2008 from SAP level. Do you feel its ok to patch the R3DLLINS.ZIP file but I feel it helps some part . .. it wont solve this ..!!

In SAP Release NetWeaver '04 (6.40) and SAP NetWeaver 2004s (7.0), the Visual Studio .NET 2003 Compiler for Windows x86 (32-bit) is used. For SAP Releases 4.6D EX2, 6.40 EX2, 7.01, 7.10 and subsequent releases, Visual Studio 2005 Compiler is used on all Windows platforms.