I want to send e-mail automatically from windows with help of “win32ole”
and outlook. I wrote two short scripts:
one that sends the mail and
one that sends the keystrokes to the outlook security alert. (the
security alert pops up, because it could be a virus which sends the
e-mail.)
Is there a possibility to combine these to scripts in one? I tried a lot
of different things, but the script hangs while outlook is waiting for
the user input. That’s why I have to set up two cron-jobs. One script
would make the whole thing less error prone (no timing issues with the
cron-jobs).
An alternative to turning off the feature might be threads. It might be
tricky though depending on if/how things block in this situation.
Although
if you are using Ruby 1.9 that shouldn’t be an issue.
–
“Hey brother Christian with your high and mighty errand, Your actions
speak
so loud, I can’t hear a word you’re saying.”
An alternative to turning off the feature might be threads. It might be
tricky though depending on if/how things block in this situation.
Although
if you are using Ruby 1.9 that shouldn’t be an issue.
I tried threads - but it didn’t work. Didn’t know that the Ruby-version
is important… Will check if 1.9 is installed.
Thanks
–
“Hey brother Christian with your high and mighty errand, Your actions
speak
so loud, I can’t hear a word you’re saying.”
1.9 uses OS Native threads while 1.8 uses green threads so if the ruby
process is blocked then your “threads” a potentially blocked. I’ve
never
tried threads with 1.9 in Windows though so I don’t know how they
behave.
–
“Hey brother Christian with your high and mighty errand, Your actions
speak
so loud, I can’t hear a word you’re saying.”