If I remember what I've read on this list you need to run your script from a
batch file.
Gary
----- Original Message -----
From: "Martin Oliver Madsen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 18, 2004 12:58 PM
Subject: [IMail Forum] Problem with program alias in Imail 8.1
> Hi,
>
> I have a problem with a program alias that should send me an email:
>
> '-----------
> ' Set the shell object
> Set Shell = CreateObject("wscript.shell")
>
> ' Send confirmation of update email code here
> retval = Shell.Run("D:\IMail\imail1.exe -f D:\IMail\Sniffer\text.txt -s
> 'Sniffer Update OK' -t '[EMAIL PROTECTED]' -u
'[EMAIL PROTECTED]'",
> 0 true)
>
> Set Shell = Nothing
> '-----------
>
> When I run this script in my command prompt everything works okay, but
when
> running from a program alias nothing happens. Here is what I have tried in
> the program alias:
>
> C:\WINNT\system32\cscript.exe D:\IMail\Sniffer\sniffer_update.vbs
> cscript D:\IMail\Sniffer\sniffer_update.vbs
> D:\IMail\Sniffer\sniffer_update.vbs
>
> No email is sent to me!
>
> I then tried to make a handler that would trigger this vbs script, if
> vb-scripts was not allowed as the 'resolves to' program in a program
alias.
>
> Here is what that .bat holds:
>
> copy %1 D:\IMail\Sniffer\bluebird.txt
> cd d:\Imail\Sniffer
> sniffer_update.vbs %1
>
> The first line in the bat file is executed (the file is copied) but the
vbs
> is never executed or the vbs file does nothing when run from a program
> alias.
>
> What am I missing ?? I am running Windows 2000 (completely pathed) and
Imail
> 8.1
>
> Thanks for any info,
>
> /Martin
>
---
[This E-mail scanned for viruses by Declude Virus]
To Unsubscribe: http://www.ipswitch.com/support/mailing-lists.html
List Archive: http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
Knowledge Base/FAQ: http://www.ipswitch.com/support/IMail/