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 semt 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
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.650 / Virus Database: 416 - Release Date: 04-04-2004
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/