Did you try to use perl.exe in your bat file perl.exe yourperlscript.pl %1
Makeshure perl.exe can be fopund with the path environment variable or specify the full path in the bat file. Kevin Bilbee > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Smart Business > Lists > Sent: Wednesday, October 15, 2003 6:23 PM > To: [EMAIL PROTECTED] > Subject: Re: [IMail Forum] Custom SMTP delivery application > > > > Wednesday, October 15, 2003 you wrote: > SHE> Has anyone called a perl script as a custom SMTP delivery > application? > > Easiest way for me is to us a bat file in the alias > "c:\dir\my.bat" > > then in the bat file (%1 being the message file) > cd c:\dir\ > myperlscript.pl %1 > > then in your perl program: > ($filepath) = @ARGV; > ... do some stuff ... > unlink($filepath); # remember to delete your message file > > Terry Fritts > > > > > > 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/ > 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/
