SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Email

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Email
Author Message
David Anders



Joined: 22 Sep 2004
Posts: 2

Post Email Reply with quote

Hi,

I want to run a script that will send a email to a list of people.

My server is running IIS with SMTP. Is there a script I can use that will allow me to simply kick off the job and send
a message to the list of people I want it sent too?


Wed Sep 22, 2004 3:14 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7968

Post Re: Email Reply with quote

To kick of that job you can simply run "24x7.exe /JOB [job id here]"

For a fine control you can use 24x7 COM API. Take a look at the first example available in 24x7 COM API Reference.

: Hi,

: I want to run a script that will send a email to a list of people.

: My server is running IIS with SMTP. Is there a script I can use that will
: allow me to simply kick off the job and send
: a message to the list of people I want it sent too?

Wed Sep 22, 2004 3:33 pm View user's profile Send private message
David Anders



Joined: 22 Sep 2004
Posts: 2

Post Re: Email Reply with quote

: To kick of that job you can simply run "24x7.exe /JOB [job id
: here]"

: For a fine control you can use 24x7 COM API. Take a look at the first example
: available in 24x7 COM API Reference.

Ok I am slow. Where do I look?
Again I will have a list of email addresses, and a message I want 24x7 to
send that message to those users.

Thanks

Wed Sep 22, 2004 4:40 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7968

Post Re: Email Reply with quote

I though you need a script to run 24x7 job. Are you asking for a script for sending emails from 24x7?
In case if you want a "send" script and assuming that you store emails in a flat text file with each email appearing on a new line you can use the following job (this is a copy & paste from the example for "FileOpen" topic in 24x7 help file)

Dim file_number, number
Dim recipient, string
Dim end_of_file, boolean

// Open recipients file for reading line by line
FileOpen( "mail.lst", "LineMode", "Read", "", file_number )

// Read file line by line until the end of file.
// Each recipient must be on a separate line

EOF( file_number, end_of_file )

LoopUntil( end_of_file, END_LOOP )

FileRead( file_number, recipient )

// Send email

MailSend( "Exchange Settings", &

"syspassword", &

recipient, &

"any subject", "any message" )

EOF( file_number, end_of_file )
END_LOOP:

// Done with sending message, release file
FileClose( file_number )

: Ok I am slow. Where do I look?
: Again I will have a list of email addresses, and a message I want 24x7 to
: send that message to those users.

: Thanks

Wed Sep 22, 2004 6:38 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.