Jump to content
Sign in to follow this  
stillife

Starting a procedure through email

Recommended Posts

stillife

Hi all,

I'm just trying to see if there is any methods out there to initiate/start an application remotely through email. I currently have a batch job for an iterative process which sends me emails as it progresses through the work. But sometimes when the job is finished, I'm not able to be at the physical machine and start the next iteration of the program. I'm wondering if there is any way to use email as a way of starting the job again. I'm thinking a script that listens for a particular email to come in and then starts the process but haven't had any luck finding any information about this. Ofcourse an Autoit solution would be the most prefared method.

Any help in this regard is highly appreciated.

Thanks

Share this post


Link to post
Share on other sites
Juvigy

Check this out.It waits for a new email to arrive and display a msgbox when this happen.

oOApp = ObjCreate("Outlook.Application")
$test=ObjEvent($oOApp,"oOApp_")

sleep(1111111)
$oOApp=0
$test=0

Func oOApp_NewMail()
MsgBox(0,"test","test")
EndFunc

Share this post


Link to post
Share on other sites
burlip

Hi all,

I'm just trying to see if there is any methods out there to initiate/start an application remotely through email. I currently have a batch job for an iterative process which sends me emails as it progresses through the work. But sometimes when the job is finished, I'm not able to be at the physical machine and start the next iteration of the program. I'm wondering if there is any way to use email as a way of starting the job again. I'm thinking a script that listens for a particular email to come in and then starts the process but haven't had any luck finding any information about this. Ofcourse an Autoit solution would be the most prefared method.

Any help in this regard is highly appreciated.

Thanks

If you are working with Office2007, you could use an "Outlook Rule" similar to this:

- on incoming email

- if body contains "work ya bastard"

- start application "stillife_iterator.exe"

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.