0% found this document useful (0 votes)
37 views1 page

Scheduling A FIM Job Using BODS Scheduler: Code

This document contains code to send an email message using CDO. It creates a CDO message object, sets the from, to, cc, bcc, subject, text body and attachment. It then configures the remote SMTP server name and port. Finally, it sends the message.

Uploaded by

lakshmi025
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views1 page

Scheduling A FIM Job Using BODS Scheduler: Code

This document contains code to send an email message using CDO. It creates a CDO message object, sets the from, to, cc, bcc, subject, text body and attachment. It then configures the remote SMTP server name and port. Finally, it sends the message.

Uploaded by

lakshmi025
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

Code:

SetobjMessage=CreateObject("CDO.Message")
objMessage.From=WScript.Arguments(0)
objMessage.To=WScript.Arguments(1)
objMessage.Cc=WScript.Arguments(2)
objMessage.Bcc=WScript.Arguments(3)
objMessage.Subject=WScript.Arguments(4)
objMessage.TextBody=WScript.Arguments(5)&vbcrlf
objMessage.AddAttachmentWScript.Arguments(6)

'==ThissectionprovidestheconfigurationinformationfortheremoteSMTPserver.
'==NormallyyouwillonlychangetheservernameorIP.
objMessage.Configuration.Fields.Item_
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'NameorIPofRemoteSMTPServer
objMessage.Configuration.Fields.Item_
("http://schemas.microsoft.com/cdo/configuration/smtpserver")="SMTP_SERVER_NAME"
'Serverport(typically25)
objMessage.Configuration.Fields.Item_
("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
objMessage.Configuration.Fields.Update
'==EndremoteSMTPserverconfigurationsection==
objMessage.Send
EXEC('CSCRIPT.EXE','[$G_VBS_SCRIPT_FILE]"[$G_EMAIL_FROM]""[$G_EMAIL_TO]""[$G_EMAIL_CC]""[$G_EMAIL_BCC]""[$G_EMAIL_SUBJECT]"
"[$G_EMAIL_BODY]""[$G_EMAIL_ATTACHMENT]"',8);

Scheduling a FIM job using BODS scheduler


https://scn.sap.com/thread/3228995

You might also like